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