There are a total of A + B cats and dogs. Among them, A are known to be cats, but the remaining B are not known to be either cats or dogs.  Determine if it is possible that there are exactly X cats among these A + B animals.
a,b,x = map(int,input().split())
if b >= x and a <= x:
    print('Yes')
else:
    print('No')
#n,m,x = map(int,input().split())
a,b,x = map(int,input().split())
d = x - a
if d >= 0 and b >= d:
    print('YES')
else:
    print('NO')