#include <bits/stdc++.h>
using namespace std;
template <typename T>
vector<T> readVector(int n) {
  vector<T> res(n);
  for (int i = 0; i < n; i++) cin >> res[i];
  return res;
}
template <typename T>
void printVector(vector<T> in) {
  int n = in.size();
  for (int i = 0; i < n; i++) {
    cout << in[i] << " \n"[i == n - 1];
  }
}
const long long int mod = 1e6 + 3;
int main() {
  long long int t, x, second;
  cin >> t >> second >> x;
  bool mk = 0;
  if ((x - t) >= second and ((x - t) % second == 0 or (x - t) % second == 1))
    mk = 1;
  if (x < t) mk = 0;
  if (x == t) mk = 1;
  if (mk)
    puts("YES");
  else
    puts("NO");
}
