Problem:
 Score : 100 points    Problem Statement There are a total of A + B cats and dogs.
Among them, A are known to be cats, but the remaining B are not known to be either cats or dogs.  Determine if it is possible that there are exactly X cats among these A + B animals.      Constraints  1 \leq A \leq 100  1 \leq B \leq 100  1 \leq X \leq 200  All values in input are integers.         Input Input is given from Standard Input in the following format:  A  B  X       Output If it is possible that there are exactly X cats, print YES ; if it is impossible, print NO .        Sample Input 1 3 5 4      Sample Output 1 YES  If there are one cat and four dogs among the B = 5 animals, there are X = 4 cats in total.       Sample Input 2 2 2 6      Sample Output 2 NO  Even if all of the B = 2 animals are cats, there are less than X = 6 cats in total.       Sample Input 3 5 3 2      Sample Output 3 NO  Even if all of the B = 3 animals are dogs, there are more than X = 2 cats in total.

Solution (Python):
a,b,x = map(int,input().split())
print("YES") if a<=x and (a+b)>=x else print("NO")

Solution (Python):

a, b, x = map(int, input().split())
print("YES" if b >= x - a and a <= x else "NO")

Solution (Python):
a ,b ,x = map(int, input().split())
print('YES' if a <= x and x - a <= b else 'NO')

Solution (Python):
A,B,X = map(int, input().split())
if A > X:
    print("NO")
elif B > X - A:
    print("YES")
else:
    print("NO")

Solution (Python):


def main():


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





if __name__== "__main__":
    main()

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

Solution (Python):
a,b,x  =map(int,input().split())
if x-a >= 0 and x-a <= b:
    print('YES')
else:
    print('NO')

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

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

Solution (Python):
A,B,X=map(int,input().split())

print("YES" if A+B>=X and A<=X else "NO")

Solution (Python):
S = input().split()
A, B, X = int(S[0]), int(S[1]), int(S[2])
diff = X - A
if diff >= 0 and diff <= B:
    print('YES')
else:
    print('NO')

Solution (Python):
a, b, x = map(int, input().split())
if a > x or a + b < x:
    print('NO')
else:
    print('YES')

Solution (Python):
A,B,X=map(int,input().split())
print('YES' if A<=X<=A+B else 'NO')

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

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

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

Solution (Python):
a,b,x = map(int, input().split())
print('YES' if a<=x and a+b>=x else 'NO')

Solution (Python):
a,b,x = map(int,input().split())
print("YES" if a<=x and a+b >= x else "NO")

Solution (Python):
(a, b, x) = (int(tok) for tok in input().split())
print("YES"if a <= x and x <= a + b else "NO")

Solution (Python):
a = [int(_) for _ in input().split()]
if len(a) == 3 and 1 <= a[0] <= 100 and 1 <= a[1] <= 100 and 1 <= a[2] <= 200:
    if a[0] <= a[2] <= a[0] + a[1]:
        print('YES')
    else:
        print('NO')
else:
    print('hoge!')

Solution (Python):
a, b, x = map(int, input().split())
print('YES' if a<=x and x<a+b else 'NO')

Solution (Python):
a,b,x=map(int,input().split())
if a+b>=x and a<=x:
    print("YES")
else:
    print("NO")

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

Solution (Python):
num = input().split()

a, b, x = int(num[0]), int(num[1]), int(num[2])

if a>x or a+b<x:
  print("NO")
else:
  print("YES")

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

a, b, x = na()
print('YES' if x - a <= b and a <= x else "NO")

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

Solution (Python):
a, b, x = map(int,input().split())
if x >= a and x <= a + b:
    print('YES')
else:
    print('NO')

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

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

Solution (Python):
a,b,x=map(int,input().split())
print('YES' if a<=x<=a+b else 'NO')

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

Solution (Python):
import sys
input = sys.stdin.readline

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

if __name__ == "__main__":
    main()

Solution (Python):
a,b,x=map(int,input().split());print(" YNEOS"[a<=x<=a+b::2])

Solution (Python):
A, B, X = map(int, input().split())
if A <= X and X <+ A+B:
    print('YES')
elif A+B < X or X < A:
    print('NO')

Solution (Python):


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

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

Solution (Python):
A,B,X=map(int,input().split())
if 0<=X-A<=B:
  print('YES')
else:
  print('NO')

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

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

Solution (Python):
a,b,x=map(int, input().split())
if x<a or a+b<x:
    print('NO')
else:
    print('YES')

Solution (Python):
a, b, c = map(int, input().split())

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

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

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

if A<=X<=A+B:
  print("YES")
else:
  print("NO")

Solution (Python):
a, b, x = map(int, input().split())
if x - a < 0 or x - a > b:
    print('NO')
elif x - a <= b:
    print('YES')

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

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


if __name__ == "__main__":
    resolve()

Solution (Python):
def resolve():
    a, b, x = map(int, input().split())
    ans = "YES" if b >= x - a and a <= x else "NO"
    print(ans)


if __name__ == "__main__":
    resolve()

Solution (Python):
a,b,c=map(int,input().split())
print('YES' if 0<=c-a<=b else'NO')

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

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

if A<=X<=A+B:
  print("YES")
else:
  print("NO")

Solution (Python):
A, B, X = map(int, input().split())
if X < A:
    print("NO")
elif X - A <= B:
    print("YES")
else:
    print("NO")

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

Solution (Python):
a,b,x = map(int,input().split())
print('YES' if a <= x <= (a+b) else 'NO')

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

for i in range(b):
    if a+i == x:
        print('YES')
        break
else:
    print('NO')

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

if a > x or x > a + b:
  print('NO')
else:
  print('YES')

Solution (Python):
A, B, X = map(int, input().split())
print("YES") if A + B >= X >= A else print("NO")

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

Solution (Python):
a,b,x=map(int, input().split())
if a+b>=x and x>=a:
    print("YES")
else:
    print("NO")

Solution (Python):
a, b, x = map(int,input().split())
if x >= a and x <= a + b:
    print("YES")
else:
    print("NO")

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

if a>x:
  print('NO')
elif b>x-a:
  print('YES')
else:
  print('NO')

Solution (Python):
def main():
    A, B, X = map(int, input().split())
    if A <= X <= A+B:
        return "YES"
    return "NO"
if __name__ == '__main__':
    print(main())

Solution (Python):
a, b, x = map(int, input().split())
print('YES' if a <= x <= a + b else 'NO')

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

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

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

Solution (Python):
A,B,X = map(int,input().split())
if X >= A and X <= A+B:
    print("YES")
else:
    print("NO")

Solution (Python):
a, b, x = map(int, input().split())
print('YES' if a<= x <= a+b else 'NO')

Solution (Python):
a,b,c=map(int,input().split())
print("YES" if a<=c and c<=a+b else "NO")

Solution (Python):
a, b, x = (int(i) for i in input().split())
print("YES" if 0 <= x - a <= b else "NO")

Solution (Python):
a, b, x = map(int, input().split())
print('YES' if a <= x <= (a+b) else 'NO')

Solution (Python):
a,b,x=map(int,input().split())
print('NO' if b<(x-a) or a>x else 'YES')

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

Solution (Python):
A,B,X = map(int,input().split())
print('YES' if A<=X and X<=A+B else 'NO')

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

Solution (Python):
a, b, x = list(map(int, input().split()))
print("YES" if a <= x and (x-a) <= b else "NO")

Solution (Python):
a, b, x = map(int, input().split())
print('YES' if a <= x <= a+b else 'NO')

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

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

Solution (Python):
A,B,X=map(int,input().split())
if A<=X and X<=A+B:
    print('YES')
else:
    print('NO')

Solution (Python):
a,b,x =map(int,input().split())
print('YES' if a<=x<=(a+b) else 'NO')

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

if x < a or x > a + b:
    print('NO')
else:
    print('YES')

Solution (Python):
A, B, X = [int(x) for x in input().split()]
print('YNEOS'[1-(A<=X<=A+B-1)::2])

Solution (Python):
a,b,x=map(int,input().split())
if a+b>=x and a<=x:
  print("YES")
else:
  print("NO")

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

Solution (Python):
a, b, x = map(int, input().split())
if a > x or x - a > b:
    print("NO")
else:
    print("YES")

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

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

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

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

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

Solution (Python):
a,b,x = map(int,input().split())
if a>x:
  print("NO")
elif b>=x-a:
  print("YES")
else:
  print("NO")

Solution (Python):
A,B,X=map(int,input().split())

if A<=X and A+B>=X:
    print('YES')
elif A>X:
    print('NO')
elif A+B<X:
    print('NO')

Solution (Python):
a,b,w = map(int,input().split())
print('YES' if a <= w <= a+b else 'NO')

Solution (Python):
def test():
    a,b,x = map(int,input().split())
    if a <= x and a+b >= x:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    test()

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

Solution (Python):
a,b,x=map(int,input().split());print(["NO","YES"][~b<a-x<1])

Solution (Python):
a,b,x=map(int,input().split())
print("YES" if x>=a and x<=a+b else "NO")

Solution (Python):
A,B,X=map(int,input().split())

if X>=A and X<=A+B:
    print("YES")
else:
    print("NO")

Solution (Python):
a,b,x = map(int,input().split())
print("YES" if x >= a and x <= a+b else "NO")

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

Solution (Python):
a,b,x = map(int,input().split())
print("YES" if a <= x and a + b >= x else "NO")

Solution (Python):
a,b,x = map(int,input().split())
print("YES" if a <= x and a + b >= x else "NO")

Solution (Python):
def main():
    A, B, X = map(int ,input().split())

    if A <= X <= A + B:
        print('YES')
    else:
        print('NO')

main()

Solution (Python):
a, b, x = map(int, input().split(" "))
if x - a >= 0 and b > x - a:
  print("YES")
else:
  print("NO")

Solution (Python):
A, B, X = map(int, input().split())

if A>X or X>A+B:
    print('NO')
else:
    print('YES')

Solution (Python):
a,b,x=map(int,input().split());print("NYOE S"[a<=x<=a+b::2])

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

Solution (Python):
A, B, X = map(int, input().split())

if A + B >= X and X >= A:
    print('YES')
else:
    print('NO')

Solution (Python):
a,b,x=map(int,input().split())
if x < a or a+b < x:
  print('NO')
else:
  print('YES')

Solution (Python):
A,B,X = map(int,input().split())
print("YES" if A+B >= X and A <= X else "NO")

Solution (Python):
a,b,x=map(int,input().split())
if a>x:
    print("NO")
else:
    if b>=(x-a):
        print("YES")
    else:
        print("NO")

Solution (Python):
a,b,x=map(int,input().split())
print(("NO","YES")[a<=x and a+b>=x])

Solution (Python):
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**7)


def main():
    a, b, x = map(int, input().split())
    print('YES' if x <= a+b and a <= x else 'NO')


if __name__ == "__main__":
    main()

Solution (Python):

a, b, x = map(int, input().split())
if x < a:
    print('NO')
else:
    print('YES' if x-a <= b else 'NO')

Solution (Python):
A,B,X = map(int, input().split())
if X < A or X > A + B:
         print("NO")
else:
         print("YES")

Solution (Python):
a,b,x = map(int, input().split())
 
if a+b >= x and x >= a :
  print("YES")
  
else:
  print("NO")

Solution (Python):
a,b,x=map(int,input().split())
if x-a > b or a > x:
    print("NO")
else:
    print("YES")

Solution (Python):
A, B, X = map(int, input().split())

if A <= X <= A + B:
    print('YES')
else:
    print('NO')

Solution (Python):
A,B,X = map(int,input().split())

if X < A:
    print("NO")
elif X <= A+B:
    print("YES")
else:
    print("NO")

Solution (Python):
a,b,x=map(int,input().split())
if a<=x<=a+b-1:
    print('YES')
else:
    print('NO')

Solution (Python):
a, b, x = map(int, input().split(' '))
print('YES' if a <= x and a + b >= x else 'NO')

Solution (Python):


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

if A <= X <= A+B:
    print("YES")
else:
    print("NO")

Solution (Python):
a,b,x=map(int,input().split())
print('YES' if a<=x<=a+b else 'NO')

Solution (Python):
a = list(map(int,input().split()))

if a[0] + a[1]>= a[2]:
  if a[2] >= a[0]:
    if a[1] >= a[2] - a[0]:
      print("YES")
    else:
      print("NO")
  else:
    print("NO")
else:
  print("NO")

Solution (Python):

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

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

Solution (Python):
a,b,c = map(int, input().split())
if c - a >= 0 and c - a <= b:
  print("YES")
else:
  print("NO")

Solution (Python):
a, b, c = map(int, input().split())
if c < a or c > a + b:
    print('NO')
else:
    print('YES')

Solution (Python):
a,b,x = map(int,input().split())
if a+b<x:
    print("NO")
elif a > x:
    print("NO")
else:
    print("YES")

Solution (Python):
a, b, x = map(int, input().split(' '))
if a > x:
    print("NO")
elif  a+b >= x:
    print("YES")
else:
    print("NO")

Solution (Python):
a,b,c = map(int,input().split())
if (c-a) < 0:
    print('NO')
elif (c-a) == 0:
    print("YES")
else:
    if (c-a) <= b:
        print('YES')
    else:
        print('NO')

Solution (Python):
A, B, C = map(int, input().split())
if C-A<=B and C>=A:
    print('YES')
else:
    print('NO')

Solution (Python):
A, B, X = map(int, input().split())

if X >= A and X <= A+B:
    print('YES')
else:
    print('NO')

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

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

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

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

Solution (Python):
a,b,c = list(map(int,input().split()))
if a <= c and a+b >= c:
    print("YES")
else:
    print("NO")

Solution (Python):
A, B, X = map(int, input().split())
if A <= X <= A+B:
    print('YES')
else:
    print('NO')

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

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

Solution (Python):
A,B,X = map(int,input().split())
if (X<A) or (X>(A+B)):
  print("NO")
else:
  print("YES")

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

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

n = A+B
if A==X:
  print('YES')
  
elif  A<=X and n >=X:
  print('YES')

else:
  print('NO')

Solution (Python):
x,y,z = map(int,input().split())
if x > z :
  print('NO')
elif x+y < z:
  print('NO')
else:
  print('YES')

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

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

Solution (Python):
a,b,x=map(int,input().split())
print('YES' if a<=x<=a+b else 'NO')

Solution (Python):
a,b,x = map(int,input().split())
if x >= a and x <= (a+b):
  print('YES')
else:
  print('NO')

Solution (Python):
a, b, x = map(int, input().split())
if a + b >= x and a <= x:
  print('YES')
else:
  print('NO')

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

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

Solution (Python):

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

res = False

for inu in range(0, a + b + 1):
    if x + inu != a + b:
        continue
    neko = a + b - inu
    if neko == x and neko >= a:
        res = True

print("YES" if res else "NO")

Solution (Python):
a, b, x = map(int, input().split()) 
if a <= x <= a + b:
  print('YES')
else:
  print('NO')

Solution (Python):
a=list(map(int,input().split()))
if a[0]<=a[2] and a[0]+a[1]>=a[2]:
    print("YES")
else:
    print("NO")

Solution (Python):
A,B,X = map(int,input().split())
if A+B >=X and A<=X:
  print('YES')
else:
  print('NO')

Solution (Python):
a, b, x = map(int, input().split())
if x >= a and x <= a + b:
    print("YES")
else:
    print("NO")

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

if A<=X<=A+B:
  print("YES")
else:
  print("NO")

Solution (Python):
A, B, X = map(int, input().split())

if A <= X and A+B >= X:
  print('YES')
else:
  print('NO')

Solution (Python):
a,b,x=map(int,input().split())
if a<=x and a+b>x:
    print("YES")
else:
    print("NO")

Solution (Python):
A,B,X = map(int,input().split())

if A <= X and X-A <= B:
    print("YES")
else:
    print("NO")

Solution (Python):
a,b,c = map(int,input().split())
if c>= a:
  if c-a<=b:
    print('YES')
  else:
    print('NO')
else :
  print('NO')

Solution (Python):
A, B, X = map(int, input().split())

if A <= X <= A + B:
    print("YES")
else:
    print("NO")

Solution (Python):
A,B,X = map(int,input().split())

if A > X:
    print('NO')
    exit()
if A + B < X:
    print('NO')
    exit()
print('YES')

Solution (Python):
a, b, x = map(int, input().split())
print('YES' if a <= x and x <= a + b else 'NO')

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

Solution (Python):
a,b,x=map(int,input().split())
print(["NO","YES"][0<=x-a<=b])

Solution (Python):
a,b,x=map(int,input().split())
print('YES' if a<=x<=(a+b) else 'NO')

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

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

Solution (Python):
A, B, X = map(int, input().split())
if A + B >= X and X >= A:
  print("YES")
else:
  print("NO")

Solution (Python):

A,B,X = [int(i) for i in input().split()]
if A <= X and X <= A+B:
    print("YES")
else:
    print("NO")

Solution (Python):
a, b, x = map(int, input().split())
if x < a or x > a+b:
    print('NO')
else:
    print('YES')

Solution (Python):
A, B, X = map(int, input().split())
if A + B >= X and A <= X:
    print("YES")
else:
    print("NO")

Solution (Python):
a, b, c = map(int, input().split())
if a <= c <= a + b:
    print("YES")
else:
    print("NO")

Solution (Python):
A, B, X = map(int, input().split())
if A+B >=X and A <= X:
  print ('YES')
else:
  print ('NO')

Solution (Python):
a,b,x=map(int,input().split())
print('YNEOS'[x<a or a+b<x::2])

Solution (Python):
a,b,x = map(int,input().split())
if x > a + b or x < a:
    print('NO')
else:
    print('YES')

Solution (Python):



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


ans = 'YES' if A <= X and (X - A) <= B else 'NO'


print(ans)

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007


def A():
    a, b, x = LI()
    if a <= x <= a + b:
        print("YES")
    else:
        print("NO")
    return


def B():
    return


def C():
    n = II()
    x = LI()
    xb = x[::1]
    xb.sort()
    a = xb[n // 2 - 1]
    b = xb[n // 2]
    for i in range(n):
        if x[i] <= a:
            print(b)
        elif x[i] >= b:
            print(a)
        
    return


def D():
    return


def E():
    return


def F():
    return


def G():
    return


def H():
    return


if __name__ == '__main__':
    A()

Solution (Python):



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







if (A <= X) and (A + B >= X):
    print('YES')
else:
    print('NO')

Solution (Python):
a, b, x = map(int, input().split())
print('YES' if a <= x <= a + b else 'NO')

Solution (Python):
a,b,x = map(int,input().split(' '))

if a > x:
    print('NO')
elif a == x:
    print('YES')
elif a < x and b - x + a >= 0:
    print('YES')
else:
    print('NO')

Solution (Python):
a, b, x = map(int, input().split())
ans = 'NO'
if a <= x and a + b >= x:
  ans = 'YES'
print(ans)

Solution (Python):
a, b, c = map(int, input().split())
if a > c:
    print("NO")
else:
    if c - a <= b:
        print("YES")
    else:
        print("NO")

Solution (Python):

import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import numpy as np
import statistics
from statistics import mean, median,variance,stdev
import math

def main():
	A, B, X = map(int, input().split(" "))
	
	if A+B >= X:
		if A <= X:
			print("YES")
		else:
			print("NO")
	else:
		print("NO")
	
if __name__ == "__main__":
	main()

Solution (Python):
A, B, X = map(int, input().split())
if 0 <= X - A and X - A <= B:
	print('YES')
else:
	print('NO')

Solution (Python):



a,b,x = map(int,input().split())
if a > x:
    print('NO')
elif b >= x-a:
    print('YES')
else:
    print('NO')

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

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

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

Solution (Python):
a,b,x=map(int,input().split())
if a<=x and a+b>= x:print("YES")
else:print("NO")

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

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







if a+b < x or x-a < 0:
  print('NO')
else:
  print('YES')

Solution (Python):
A,B,X=map(int,input().split())
if A>X:
  print("NO")
elif A+B<X:
  print("NO")
else:
  print("YES")

Solution (Python):
a,b,x=map(int,input().split())
if a+b>=x and a<=x:
  print("YES")
else:
  print("NO")

Solution (Python):
a = list(map(int,input().split()))

if a[2]<a[0]:
  print("NO")
else:
  if a[2]<=a[0]+a[1]:
    print("YES")
  else:
    print("NO")

Solution (Python):
a,b,x = map(int,input().split())
if (a+b)>x and x>=a:
    print('YES')
else:
    print('NO')

Solution (Python):
import sys

def input():
    return sys.stdin.readline().rstrip()

if __name__ == "__main__":
    a, b, x = map(int, input().split())

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

Solution (Python):
import sys

def input():
    return sys.stdin.readline().rstrip()

if __name__ == "__main__":
    a, b, x = map(int, input().split())

    is_possible = False
    if a > x:
        print("NO")
    elif b >= x - a:
        print("YES")
    else:
        print("NO")

Solution (Python):

import sys

YES = "YES"  
NO = "NO"  

def solve(A: int, B: int, X: int):
    print(YES) if(A <= X <= A+B) else print(NO)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    X = int(next(tokens))  
    solve(A, B, X)

if __name__ == '__main__':
    main()

Solution (Python):
A, B, X = map(int, input().split())

print('YES' if A+B >= X and A <= X else 'NO')

Solution (Python):
def resolve():
	a,b,x=map(int,input().split())
	ans='YES'
	if a>x:
		ans='NO'
	if a+b<x:
		ans='NO'
	print(ans)
resolve()

Solution (Python):

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

Solution (Python):
from functools import reduce
import math

def main():
    
    
    
    

    
    
    
    
    
    

    
    

    
    
    
    
    
    
    
    
    
    INF = float("inf")

    
    MOD = 10**9+7
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    
    
    
    
    A,B,X = (int(_) for _ in input().split())
    if X<A:
        print('NO')
    elif A+B<X:
        print('NO')
    else:
        print('YES')
    
if __name__ == '__main__':
    main()

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

Solution (Python):
A,B,X = map(int,input().split())
if A <= X and A+B >= X:
  print("YES")
else:
  print("NO")

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

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

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

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

Solution (Python):
a, b, x = map(int, input().split())
print('YES' if a <= x and  x - a < b else 'NO')

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

Solution (Python):
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

A, B, X = nl()

if X >= A and X <= A+B:
    print('YES')
else:
    print('NO')

Solution (Python):
A, B, X = map(int, input().split())
if A+B>=X and X>=A:
    print("YES")
else:
    print("NO")

Solution (Python):

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

if X < A or A+B < X:
    print ("NO")

else:
    print ("YES")

Solution (Python):
A, B, X = map(int, input().split())
print('YES' if A <= X and A + B >= X else 'NO')

Solution (Python):
a,b,x=map(int,input().split())
if a<=x<=a+b:
    print('YES')
else:
    print('NO')

Solution (Python):
s = list(map(int,input().split()))

a = s[0]
b = s[1]
x = s[2]
if a + b < x or a > x:
    print("NO")
else:
    print("YES")

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

Solution (Python):
A,B,X = map(int, input().split())
print('NO' if A+B < X or A > X else 'YES')

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

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

Solution (Python):
a, b, x = map(int, input().split())
print('YES' if a <= x <= a+b else 'NO')

Solution (Python):
a,b,c=map(int,input().split())
if a>c or (a+b)<c:
  print("NO")
else:print("YES")

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

Solution (Python):
A, B, X = [int(abx) for abx in input().split()]
if A <= X <= A+B:
  print("YES")
else:
  print("NO")

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

Solution (Python):
A, B, X = map(int, input().split())
if (A <= X) and (A + B >= X):
    print("YES")
else:
    print("NO")

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

if a > x or a + b < x:
  print('NO')
else:
  print('YES')

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

Solution (Python):
def abc():
    a, b, x = map(int, input().rstrip().split())
    if a > x:
        print('NO')
        return
    if a + b < x:
        print('NO')
        return
    print('YES')


abc()

Solution (Python):
A,B,X = map(int,input().split())
print('YES' if A<=X<=A+B else 'NO')

Solution (Python):
A, B, X = map(int, input().split())
if A <= X <= A + B:
  print('YES')
else:
  print('NO')

Solution (Python):
a,b,x=map(int,input().split())
print('YES' if a+b>=x and a<=x else 'NO')

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

print('NO' if x < a or a + b < x else 'YES')

Solution (Python):
A,B,X = map(int,input().split())
if A <= X and A+B >= X:
  print('YES')
else:
  print('NO')

Solution (Python):




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

if a > x:
    ans = "NO"
elif a + b < x:
    ans = "NO"
else:
    ans = "YES"


print(ans)

Solution (Python):
a, b, x = map(int, input().split())
if x - a >= 0 and x - a <= b:
  print('YES')
else:
  print('NO')

Solution (Python):


def solve():
    a, b, x = map(int, input().split(' '))
    if a<= x <= a+b:
        return 'YES'
    return 'NO'

print(solve())

Solution (Python):
A, B, X = map(int, input().split())

if A <= X <= A + B :
    print('YES')
else:
    print('NO')

Solution (Python):
A, B, X = [int(x) for x in input().split()]
if A+B > X and A <= X:
    print('YES')
else:
    print('NO')

Solution (Python):
a, b, x = map(int,input().split())
if a <= x <= a+b:
  print('YES')
else:
  print('NO')

Solution (Python):
a, b, x = map(int, input().split())
if a <= x <= a + b :
        print('YES')
else :
        print('NO')

Solution (Python):
a,b,x=map(int,input().split())
if x>=a and x<=a+b:
  print("YES")
else:
  print("NO")

Solution (Python):
a,b,x=map(int,input().split())
if a>x or x>a+b:
  print('NO')
else:
  print('YES')

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

Solution (Python):
A,B,X=map(int,input().split())
if A>X:
  print('NO')
else:
  if X-A<=B:
    print('YES')
  else:
    print('NO')

Solution (Python):
list = input().split()
A = int(list[0])
B = int(list[1])
X = int(list[2])

if A <= X <= A+B :
    print("YES")
else:
    print("NO")

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

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

Solution (Python):
A,B,X = map(int,input().split())


if(A<=X and X-A <= B):
    print('YES')
else:
    print('NO')