#include <bits/stdc++.h>
int main() {
  using namespace std;
  long long int t, x, s, k = 1;
  bool f = false;
  cin >> t >> s >> x;
  if (x == t) f = true;
  do {
    if (x == t + k * s + 1 || x == t + k * s) f = true;
    k++;
  } while (x >= t + k * s);
  if (f == true)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
