#include <bits/stdc++.h>
using std::pair;
const double PI = acos(-1);
const int maxn = 2e5 + 10;
const int maxm = 100 + 10;
const int mod = 1e9 + 7;
const int INF = 0x3f3f3f3f;
using namespace std;
int t, x, s;
int main() {
  cin >> t >> s >> x;
  x -= t;
  if (x < 0)
    cout << "NO" << endl;
  else {
    if (x % s == 0 || (((x - 1) % s == 0) && x != 1))
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
