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