#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t, s, x;
  cin >> t >> s >> x;
  int c = 1;
  int flag = 1;
  for (long long i = t; i <= x; i += s) {
    if (x == i) {
      cout << "YES" << endl;
      flag = 0;
      break;
    }
    if (i != t) {
      if (x == i + 1) {
        cout << "YES" << endl;
        flag = 0;
        break;
      }
    }
  }
  if (flag) cout << "NO" << endl;
  return 0;
}
