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