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



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

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

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