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