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