#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, s, x;
  cin >> t >> s >> x;
  if (x < t) {
    cout << "NO\n";
    return 0;
  }
  if ((x - t) % s < 2 && x - t != 1) cout << "YES\n";
  if ((x - t) % s > 1 || x - t == 1) cout << "NO\n";
  return 0;
}
