#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int x, t, s;
  cin >> t >> s >> x;
  if (x < t)
    printf("NO\n");
  else if (x == t)
    printf("YES\n");
  else if (x == t + 1)
    printf("NO\n");
  else {
    if (((x - t) % s == 0) || ((x - t - 1) % s == 0))
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
