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()))

print(('YES' if a <= x <= (a + b) else '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()))
print(("YES" if a <= x <= (a + b) else "NO"))

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