#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, s, x;
  scanf("%d%d%d", &t, &s, &x);
  bool flag = 0;
  if (x == t) flag = 1;
  int xcp = x;
  x -= t;
  xcp -= t + 1;
  if ((x % s == 0 && x / s > 0) || (xcp % s == 0 && xcp / s > 0)) flag = 1;
  if (flag)
    printf("YES");
  else
    printf("NO");
  return 0;
}
