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