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