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

if a <= x <= a + b:

    print("YES")

else:

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

if (a <= x <= a+b):

    print("YES")

else:

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

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

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