#include <bits/stdc++.h>
using namespace std;
const int N = 5e5 + 7;
int t, x, s;
int main() {
  cin >> t >> s >> x;
  if (x < t) {
    cout << "NO";
    return 0;
  }
  x -= t;
  if (x == 0)
    cout << "YES";
  else if (x == 1)
    cout << "NO";
  else if (x % s <= 1)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
