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