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