#include <stdio.h>
#include <math.h>
#define PRECISION 1000000
int main() {
double a, b, c;
scanf("%lf %lf %lf", &a, &b, &c);
int ia = round(a * PRECISION);
int ib = round(b * PRECISION);
int ic = round(c * PRECISION);
printf("%s\n", ia - ib == ic ? "YES" : "NO");
return 0;
}

京公网安备 11010502036488号