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