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