#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t, s, x;
  cin >> t >> s >> x;
  if (t > x) {
    cout << "NO" << '\n';
    return 0;
  }
  if (t == x)
    cout << "YES" << '\n';
  else if (t + 1 == x)
    cout << "NO" << '\n';
  else {
    double temp = x - t;
    temp = temp / (double)s;
    double temp2 = x - t - 1;
    temp2 = temp2 / (double)s;
    if (temp == (long long)temp || temp2 == (long long)temp2)
      cout << "YES" << '\n';
    else
      cout << "NO" << '\n';
  }
  return 0;
}
