A,B,X = list(map(int,input().split()))

if A <= X and A+B >= X:

  print('YES')

else:

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

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

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

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