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