#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t, s, x, m;
  cin >> t >> s >> x;
  m = (x - t) / s;
  if (x < t or x == t + 1) {
    cout << "NO";
    return 0;
  }
  if ((x == s * m + t) or (x == s * m + t + 1))
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
