#include <bits/stdc++.h>
using namespace std;
const int INF = 0x7fffffff;
template <typename tn>
inline tn read() {
  char ch;
  tn f = 1;
  while (!isdigit(ch = getchar()))
    if (ch == '-') f = -1;
  tn x = ch - '0';
  while (isdigit(ch = getchar())) x = x * 10 + ch - '0';
  return x * f;
}
int main() {
  int t = read<int>(), s = read<int>(), x = read<int>();
  x -= t;
  if ((x % s == 0 || x % s == 1) && x >= 0 && x != 1)
    printf("YES\n");
  else
    printf("NO");
}
