#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t, s, x;
  while (scanf("%I64d%I64d%I64d", &t, &s, &x) != EOF) {
    int flag = 0;
    int temp = x - t;
    if (temp < 0)
      flag = 0;
    else if ((temp % s == 0))
      flag = 1;
    else if (temp % s == 1) {
      if (temp / s != 0) flag = 1;
    }
    if (flag == 1)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
