Ted has a pineapple. This pineapple is able to bark like a bulldog! At time t (in seconds) it barks for the first time. Then every s seconds after it, it barks twice with 1 second interval. Thus it barks at times t, t + s, t + s + 1, t + 2s, t + 2s + 1, etc.

 [Image] 

Barney woke up in the morning and wants to eat the pineapple, but he can't eat it when it's barking. Barney plans to eat it at time x (in seconds), so he asked you to tell him if it's gonna bark at that time.


-----Input-----

The first and only line of input contains three integers t, s and x (0 ≤ t, x ≤ 10^9, 2 ≤ s ≤ 10^9) — the time the pineapple barks for the first time, the pineapple barking interval, and the time Barney wants to eat the pineapple respectively.


-----Output-----

Print a single "YES" (without quotes) if the pineapple will bark at time x or a single "NO" (without quotes) otherwise in the only line of output.


-----Examples-----
Input
3 10 4

Output
NO

Input
3 10 3

Output
YES

Input
3 8 51

Output
YES

Input
3 8 52

Output
YES



-----Note-----

In the first and the second sample cases pineapple will bark at moments 3, 13, 14, ..., so it won't bark at the moment 4 and will bark at the moment 3.

In the third and fourth sample cases pineapple will bark at moments 3, 11, 12, 19, 20, 27, 28, 35, 36, 43, 44, 51, 52, 59, ..., so it will bark at both moments 51 and 52.

Difficulty: interview

Starter code:

Solutions:
t, s, x = list(map(int, input().split()))
f = False
if x - 1 > t and (x - 1 - t) % s == 0:
    f = True
if x >= t and (x - t) % s == 0:
    f = True
if f:
    print('YES')
else:
    print('NO')


# You lost the game.
t,s,x = list(map(int, input().split()))
e = x-t
v = e % s
if (x >= t+s and (v == 0 or v == 1)) or (x == t):
    print("YES")
else:
    print("NO")


read = lambda: list(map(int, input().split()))
t, s, x = read()
f1 = (x - t) % s == 0 and x >= t
f2 = (x - t - 1) % s == 0 and x > t + 1
print('YES' if (f1 or f2) else 'NO')


t, s, x = list(map(int, input().split()))
x -= t
if ((x % s == 0 or x % s == 1) and x >= s) or x == 0:
    print("YES")
else:
    print("NO")


t, s, x = list(map(int, input().split()))
x -= t
if x < 0:
    print("NO")
elif x % s == 0:
    print("YES")
elif x % s == 1 and x != 1:
    print("YES")
else:
    print("NO")


t, s, x = map(int, input().split())
if x < t:
    print('NO')
else:
    if x == t + 1 and s != 1:
        print('NO')
    else:
        if (x - t) % s == 0 or (x - t - 1) % s == 0:
            print('YES')
        else:
            print('NO')

a,b,c = list(map(int, input().split()))
if c > a:
    c-=a
    if c != 1:
        
        c %= b
        if c == 0 or c==1:
            print('YES')
        else:
            print('NO')
    else:
        print('NO')
elif c==a:
    print('YES')
else:
    print('NO')

t, s, x = [int(x) for x in input().split()]
x -= t
if x>=0 and (x%s == 0 or ((x-1)%s == 0 and x != 1)):
    print('YES')
else:
    print('NO')
    


t, s, x = map(int, input().split())
if t > x:
    print("NO")
    return
time_1 = x - t
time_2 = x - t - 1
if time_1 % s == 0 or (time_2 % s == 0 and time_2 != 0):
    print("YES")
else:
    print("NO")

t, s, x = list(map(int, input().split()))

if (x < t):
    print("NO")
elif (x-t)%s == 0:
    print("YES")
elif ((x-t-1)%s == 0) and (x>t+s):
    print("YES")
else:
    print("NO")


t,s,x=map(int,input().split())
x-=t
if x==0 or (x>=s and (x%s==0 or x%s==1)):
    print("YES")
else:
    print("NO")

line = input().split()
t = int(line[0])
s = int(line[1])
x = int(line[2])
x = x-t
if x >=0 and (x%s==0 or ( x!=1 and (x-1)%s==0)):
	print ('YES')
else:
	print ('NO')

t, s, x = list(map(int, input().split(' ')))
if x == t or x >= t + s and ((x - t) % s == 0 or (x - t - 1) % s == 0):
    print('YES')
else:
    print('NO')


t, s, x = list(map(int, input().split()))
x -= t
print(["NO", "YES"][(x >= s and x % s in [0, 1])or x == 0])


__author__ = 'Utena'
t,s,x=map(int,input().split())
if x>=t:
    if not x-t==1:
        if (x-t)%s==0 or (x-t-1)%s==0:
            print('YES')
            return
    else:
        if (x-t)%s==0:
            print('YES')
            return
print('NO')

t, s, x = [int(i) for i in input().split()]
if x < t+s:
	if x == t:
		print("YES")
	else:
		print("NO")
else:	
	if (x-t)%s == 0 or (x-t)%s == 1:
		print("YES")
	else:
		print("NO")


3

def main():
    t, s, x = list(map(int, input().split()))

    if x == t:
        print("YES")
        return
    x -= t + s
    if (x >= 0 and x % s == 0) or (x >= 1 and (x - 1) % s == 0):
        print("YES")
    else:
        print("NO")


main()


import sys

inp = sys.stdin.readline().split()
t=int(inp[0])
s=int(inp[1])
x=int(inp[2])

def fn():
	if x == t: return "YES"
	if x < s+t: return "NO"
	if (x-t) % s <=1: return "YES"
	return "NO"

print(fn())



def main():
    t, s, x = list(map(int, input().split()))
    # n = int(input())
    # a = list(map(int, input().split()))
    if (x-t >= s or x == t) and (x-t) % s in (0, 1):
        print('YES')
    else:
        print('NO')


def __starting_point():
    main()

__starting_point()

def main():
    t, s, x = list(map(int, input().strip().split()))
    if x < t:
        print("NO")
    elif x == t+1 and s != 1:
        print("NO")
    elif (x-t)%s == 0 or (x-t-1)%s == 0:
        print("YES")
    else:
        print("NO")

def __starting_point():
    main()

__starting_point()

t, s, x = list(map(int, input().split()))
r = (x - t) % s
if (r == 0  and x >= t) or (r == 1 and x > t + 1):
    print("YES")
else:
    print("NO")


t,s,x = list(map(int, input().split()))
k1 = (x-t)//s
k2 = (x-t-1)//s 
if (k1 >= 0 and t + k1*s == x) or (k2 > 0 and t + k2*s + 1 == x):
    print('YES')
else:
    print('NO')


inputs = list(map(int, str(input()).split(" ")))
t, s, x = inputs
dx = x - t

print((dx == 0 or (dx >= s and (dx % s in [0, 1]))) and "YES" or "NO")


t, s, x = list(map(int, input().split()))

if x == t:
    print("YES")
    return

if x < t:
    print("NO")
    return

t += s
d = int((x - t) / s)

if d > 0:
    d -= 1

x -= d * s

while t <= x:
    if t == x or t + 1 == x:
        print("YES")
        return
    t += s

print("NO")


T,S,X = list(map(int,input().split()))


#T, T+1(X)
#T, T+1  // +S*k

if X<T:
    print('NO')
elif (X - T) % S == 1 or (X - T) % S == 0:
    if X == T+1:
        print('NO')
    else:
        print("YES")
else:
    print('NO')