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



ans = 'YES' if A <= X and X <= A + B else 'NO'

print(ans)

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

ans = 'YES' if A <= X <= A + B else 'NO'

print(ans)

A, B, X = list(map(int, input().split()))
ans = "YES" if A <= X and X <= A + B else "NO"
print(ans)

A, B, X = list(map(int, input().split()))
ans = "YES" if A <= X <= A + B else "NO"
print(ans)

-ans = "YES" if A <= X and X <= A + B else "NO" +ans = "YES" if A <= X <= A + B else "NO"