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