a, b, x = list(map(int, input().split()))

if x - a > 0:

    if a + b >= x:

        print('YES')

    else:

        print('NO')

elif x == a:

    print('YES')

else:

    print('NO') 
a, b, x = list(map(int, input().split()))

if x >= a and x <= a + b:

    print('YES')

else:

    print('NO')
a, b, x = list(map(int, input().split()))
if x - a > 0:
    if a + b >= x:
        print("YES")
    else:
        print("NO")
elif x == a:
    print("YES")
else:
    print("NO")

a, b, x = list(map(int, input().split()))
if x >= a and x <= a + b:
    print("YES")
else:
    print("NO")

-if x - a > 0: -    if a + b >= x: -        print("YES") -    else: -        print("NO") -elif x == a: +if x >= a and x <= a + b: