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