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