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