#include <bits/stdc++.h>
using namespace std;
int t, s, x;
int main() {
  while (scanf("%d%d%d", &t, &s, &x) != EOF) {
    int flg = 1;
    if (t == x)
      flg = 0;
    else {
      for (int i = 1; i <= x / s; i++) {
        if (((t + s * i) == x) || ((t + s * i + 1) == x)) flg = 0;
      }
    }
    if (flg)
      puts("NO");
    else
      puts("YES");
  }
  return 0;
}
