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



if a <= x <= a+b:

    print("YES")

else:

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

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