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