t,s,x=map(int,raw_input().split())

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

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