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