#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  scanf("%d%d%d", &a, &b, &c);
  if (c < a) {
    cout << "NO" << endl;
  } else if ((c - a) % b == 0) {
    cout << "YES" << endl;
  } else if (c > a && c < a + b) {
    cout << "NO" << endl;
  } else if ((c - a - 1) % b == 0) {
    cout << "YES" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
