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