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