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