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