#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, s, x, a = 0, b = 0, i = 1, flag = 0;
  cin >> t >> s >> x;
  if (x == t) {
    cout << "YES";
    return 0;
  }
  while (a < x) {
    a = t + i * s;
    b = a + 1;
    if (a == x || b == x) {
      flag = 1;
      break;
    }
    i++;
  }
  if (flag == 1) {
    cout << "YES";
  } else
    cout << "NO";
}
