#include <bits/stdc++.h>
using namespace std;
int read() {
  int s = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    s = s * 10 + int(ch) - '0';
    ch = getchar();
  }
  if (f == -1)
    return -s;
  else
    return s;
}
int main() {
  int t, s, x;
  t = read();
  s = read();
  x = read();
  if (x < t) {
    cout << "NO" << endl;
    return 0;
  }
  if ((!((x - t) % s) || !((x - t - 1) % s)) && x != t + 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
