#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:10000000000")
using namespace std;
const int maxN = 1000 + 11, maxM = 10, alpha = 4;
const int INF = 1e9, mod = 1e9 + 9;
int main() {
  long long t, x, s;
  cin >> t >> s >> x;
  if (x < t) {
    cout << "NO";
  } else if (x == t) {
    cout << "YES";
  } else if (x == t + 1) {
    cout << "NO";
  } else {
    x -= t;
    if (x % s == 0 || x % s == 1) {
      cout << "YES";
    } else {
      cout << "NO";
    }
  }
  return 0;
}
