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