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