#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, s, x;
  cin >> t >> s >> x;
  bool ans = false;
  if (t == x) {
    cout << "YES\n";
    return 0;
  }
  for (int i = t + s; i <= x; i += s) {
    if (i == x || i + 1 == x) {
      ans = true;
      break;
    }
    if (i > x) break;
  }
  if (ans)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
