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

print(("YES" if A <= X and X <= A+B 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 X <= A + B 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 X <= A + B else "NO")) +print(("YES" if A <= X <= A + B else "NO"))