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