#include <bits/stdc++.h>
using namespace std;
long long int t, x, s;
int main() {
  cin >> t >> s >> x;
  if (x < t)
    cout << "NO";
  else if (x == t)
    cout << "YES";
  else if (x == t + 1)
    cout << "NO";
  else
    cout << (((x - t) % s) < 2 ? "YES" : "NO");
}
