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

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

import sys

INF = 1 << 60

MOD = 10**9 + 7 # 998244353

sys.setrecursionlimit(2147483647)

input = lambda:sys.stdin.readline().rstrip()

def resolve():

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

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

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

import sys

INF = 1 << 60
MOD = 10**9 + 7  # 998244353
sys.setrecursionlimit(2147483647)
input = lambda: sys.stdin.readline().rstrip()


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


resolve()

-a, b, x = map(int, input().split()) -print("YES") if a <= x <= a + b else print("NO") +import sys + +INF = 1 << 60 +MOD = 10**9 + 7  # 998244353 +sys.setrecursionlimit(2147483647) +input = lambda: sys.stdin.readline().rstrip() + + +def resolve(): +    a, b, x = list(map(int, input().split())) +    print(("YES" if a <= x <= a + b else "NO")) + + +resolve()