#include <bits/stdc++.h>
using namespace std;
const long long N = 5e8;
long long t, s, x;
int main() {
  cin >> t >> s >> x;
  for (long long i = 1; i <= N; ++i) {
    if (t == x || t + s * i == x || t + s * i + 1 == x) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
  return 0;
}
