#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, y, t;
  while (scanf("%lld%lld%lld", &x, &y, &t) != EOF) {
    if (y == 0) {
      if (x == t || x + 1 == t)
        printf("YES\n");
      else
        printf("No\n");
      return 0;
    }
    if (((t - x) % y == 0 && t >= x) ||
        (((t - x - 1) % y) == 0 && (t >= (x + y + 1))))
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
