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