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