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