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 or A+B <X:

  print("NO")

else:

  print("YES")
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 or A + B < X:
    print("NO")
else:
    print("YES")

-if A <= X <= (A + B): +if A > X or A + B < X: +    print("NO") +else: -else: -    print("NO")