#include <bits/stdc++.h>
using namespace std;
long long int d[2000];
long long int visited[2000] = {0};
int main() {
  long long int x = 0, t, s, n, y, i, src, m, x2, y2;
  cin >> t >> s >> x;
  if (x < t) {
    cout << "NO";
    return 0;
  }
  if (((x - t) % s == 0) || ((x - t - 1) % s == 0 && (x - t - 1) != 0))
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
