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):
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,datetime
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(input())
def inpl(): return list(map(int, input().split()))
def inpl_s(): return list(input().split())

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

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

if __name__ == '__main__':
    main()

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

if X - A <= B and X >= A:
    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 = (int(_) for _ in input().split())
print('YES') if x >= a and a+b >= x else print('NO')

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

if A <= X and 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())

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

Solution (Python):
def main16():
    buf = input("");
    bufs = buf.split();
    hai = [];
    for i in range(len(bufs)):
        hai.append(int(bufs[i]));
    if hai[0] + hai[1] < hai[2]:
        print("NO");
    elif hai[0] > hai[2]:
        print("NO");
    else:
        print("YES");



if __name__ == '__main__':
    main16()

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 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 <= a + b:
  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,C = map(int,input().split())
print("YES" if (A+B>=C)and(A<=C) else "NO")

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

Solution (Python):
a,b,x=(int(i) for i 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 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())

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

print(ans)

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(B >= X - A):
        print('YES')
    else:
        print('NO')

Solution (Python):


from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


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

Solution (Python):
A, B, X = list(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):
import sys
import math
import collections
import itertools
import array
import inspect


sys.setrecursionlimit(10000)




def chkprint(*args):
    names = {id(v): k for k, v in inspect.currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg), '???')+' = '+repr(arg) for arg in args))




def to_bin(x):
    return bin(x)[2:]


def li_input():
    return [int(_) for _ in input().split()]




dp = None


def main():
    A, B, X = li_input()

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


main()

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 <= (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):
x,y,z=map(int,input().split())
if x < z and x+y > z:
	print("YES")
elif x == z:
	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())
if A+B>=X:
    if A<=X:
        print('YES')
    else:
        print('NO')
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 = []
for item in input().split():
    a.append(int(item))
if (a[2] >= a[0]) and (a[2] <= a[0]+a[1]):
    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,x = (int(i) for i in input().split())
if a <= x and a+b >= x:
    print("YES")
else:
    print("NO")

Solution (Python):
a,b,x =map(int,input().split())
if(x <= a+b and x >= a):
    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:
	print("NO")
elif x - a > b:
	print("NO")
else:
	print("YES")

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

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

Solution (Python):
a, b, x = [int(m) for m in input().split(" ")]

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

Solution (Python):
A,B,X = list(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 > 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):
lis = input().split()

if int(lis[0]) > int(lis[2]):
    print("NO")

else:
    print("YES") if int(lis[0]) + int(lis[1]) >= int(lis[2]) 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):

ABX=input()
ABX=ABX.rstrip().split(" ")
A=int(ABX[0])
B=int(ABX[1])
X=int(ABX[2])
if A <= X <= A+B:
    print("YES")
else:
    print("NO")

Solution (Python):


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

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

    

if __name__ == '__main__':
    main()

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

Solution (Python):
a, b, x = (int(y) for y in raw_input().split())
print "YES" if a <= x <= a+b else "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 + B < X or A > 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 a <= x <= a + b:
    print('YES')
else:
    print('NO')

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

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 = list(map(int,input().strip().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 <= B and X - A >= 0:
    print('YES')
else:
    print('NO')

Solution (Python):
A, B, X = list(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 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=list(map(int, input().split()))
if A+B>=X and X>=A:
    print('YES')
else:
    print('NO')

Solution (Python):
a,b,x = input().split()
A = int(a)
B = int(b)
X = int(x)

if(A > X):
	print("NO")
elif(X-A > B):
	print("NO")
else:
	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+B<X or A>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, c = map(int, input().split())
print("YES" if a <= c <= a + b else "NO")

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

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

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

Solution (Python):

def solve(A, B, X):
	if A > X:
		print("NO")
		return
	if A+B >= X:
		print("YES")
		return
	print("NO")

if __name__ == "__main__":
	A, B, X = list(map(int, input().split()))
	solve(A, B, X)

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, X = map(int, input().split())
if X < A:
    print('NO')
elif X == A:
    print('YES')
elif (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 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=[int(n) for n in 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:
	print("NO")
elif A+B<X:
	print("NO")
else:
	print("YES")

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

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

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

Solution (Python):
x,y,z=map(int,input().split())
if x <= z <= x+y :
  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):
x,y,z=map(int,input().split())
if x <= z <= x+y :
  print("YES")
else:
  print("NO")

Solution (Python):
a, b, x = map(int, input().split())
is_yes = 0
for i in range(b+1):
    c = a
    c += i
    if c == x:
        is_yes = 1
print("YES" if is_yes 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 B >= X - A and A <= X else print("NO")

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

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):
l = map(int, raw_input().split())
a = l[0]
b = l[1]
x = l[2]

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

Solution (Python):
a,b,c=map(int,input().split());print(['YES','NO'][a>c or c>a+b])

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

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

if X-A < 0:
    print('NO')
elif X-A >= 0 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:
    print("NO")
else:
    if (x - a)>b:
        print("NO")
    else:
        print("YES")

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())
if 0 <= X - A <= B:
    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())
flag = True

if A + B < X or A > X:
  flag = False

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

Solution (Python):
import sys

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

for i in range(b + 1):
  if a + i == x:
    print("YES")
    sys.exit()

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 = [int(i) for i in 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())
 
n = x - a
 
if n >= 0 and b >=  n:
    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):
N = [int(i) for i in input().split()]

if N[0] + N[1] >= N[2] and N[0] <= N[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 = list(map(int,input().split()))

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

Solution (Python):


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

n = x - a

if n >= 0 and b >=  n:
    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())

flg = 0
for n in range(b):
    m = b - n
    if a + n == x:
        flg = 1
        break
if flg:
    print("YES")
else:
    print("NO")

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

flg = 0
for n in range(b):
    m = b - n
    if a + n == x:
        flg = 1
        break
if flg:
    print("YES")
else:
    print("NO")

Solution (Python):
cat, doccat, cat_much = input().split(" ")

if int(cat) > int(cat_much):
    answer = "NO"
elif int(cat) == int(cat_much):
    answer = "YES"
else:
    if int(cat) + int(doccat) >= int(cat_much):
        answer = "YES"
    else:
        answer = "NO"

print(answer)

Solution (Python):
l = input().split()
a = int(l[0])
b = int(l[1])
x = int(l[2])

if (a > x) or (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())
dog_number = A+B-X
if dog_number >= 0:
    if X >= A:
        print('YES')
    else:
        print('NO')
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,X = map(int,input().split())
if 0 <= X - A <= B:
	print('YES')
else:
	print('NO')

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

Solution (Python):



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


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

Solution (Python):
a,b,x=(int(i) for i in input().split())

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

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

Solution (Python):
A,B,X = (int(i) for i in input().split())

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

Solution (Python):
cat, dog, x=map(int, input().split())
ans="YES"

if(cat>x or cat+dog<x):
    ans="NO"

print(ans)

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 X > A + B or X < A:
    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,c=map(int,input().split())
if a>c:
  print("NO")
if a==c:
  print("YES")
if a<c:
  if a+b>=c:
    print("YES")
  if a+b<c:
    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','NO'][a>x or b<x-a])

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

    
if __name__ == '__main__':
    main()

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

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

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

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 = input()
a = a.rstrip().split(" ")
A = int(a[0])
B = int(a[1])
X = int(a[2])

if int(A)<=int(X) and int(A) +int(B)>=int(X):
    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 and A+B>=X else 'NO')

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

Solution (Python):
A, B, C = [int(x) for x in input().split(" ")]
if A > C:
	print("NO")
elif A == C:
	print("YES")
elif A + B >= C:
	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, raw_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:
    print("NO")
elif a+b < x:
    print("NO")
else:
    print("YES")

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

Solution (Python):
A,B,X = map(int,input().split())
if B >= X-A and X-A>=0:
    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 and A <= 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 X>=A and X<=(A+B): print("YES")
else: print("NO")

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

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

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

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

Solution (Python):
ipt = [int(i) for i in input().split()]
a = ipt[0]
b = ipt[1]
x = ipt[2]

if a <= x 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 A <= 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=[int(x) for x in input().split()]
if a<=x<=a+b:
    print("YES")
else:
    print("NO")

Solution (Python):


import math
import sys
import itertools
import numpy as np

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



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

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

Solution (Python):
cat,x,cat_total = map(int, input().split())

if cat_total <= cat + x and cat <= cat_total:
  print("YES")
else:
  print("NO")

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

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())
print('YES' if 0<=x-a<=b else '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 = [int(a) for a in input().split()]
possible = all([
    A <= X,
    X <= A + B
])
if possible:
    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(('NO', 'YES')[A <= X <= A + B])

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

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

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[2] - a[0] >= 0 and (a[1]+a[0]) - a[2] >= 0:
    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())
print(["NO", "YES"][0<=x-a<=b])

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")[A <= X <= A + B])

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, c = map(int, input().split())
if (c - a) < 0:
    print('NO')
elif (c - a) < b:
    print('YES')
else:
    print('NO')

Solution (Python):
A, B, C = map(int, input().split())
if (C <= A+B) & (C >=A):
    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, raw_input().split())
print "NO" if x < a or x > a+b else "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 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 = [int(i) for i in 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 = list(map(int, input().split()))

min_count = A
max_count = A + B

if X < min_count or X > max_count:
    print("NO")
else:
    print("YES")

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

print(res)

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

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

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


if __name__ == '__main__':
    main()

Solution (Python):

"""
A - Cats and Dogs
https://beta.atcoder.jp/contests/abc094/tasks/abc094_a

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    ans = 'YES'
    A, B, X = map(int, input().split())
    if A > X:
        ans = 'NO'
    if A + B < X:
        ans = 'NO'
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Solution (Python):
a,b,c = map(int, input().split())
if a+b>=c>=a:
  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 = input().split()

if int(a[0])<=int(a[2]) and int(a[0])+int(a[1])>=int(a[2]):
  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):


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

    if A > X or 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, raw_input().split())
print "YES" if (A <= X <= A+B) else "NO"

Solution (Python):
a, b, x = [int(i) for i in 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 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):
def main():
    a, b, x = map(int, input().split())
    if a <= x <= a + b:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main()

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

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

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 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 and (x-a) <= b:
    print('YES')
else:
    print('NO')

Solution (Python):


a,b,x=map(int,raw_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 <= x 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=[int(x) for x in input().split()]
if x < a:
    print('NO')
elif a + b > x + 1:
    print('YES')
else:
    print('NO')

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

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

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

Solution (Python):
A, B, X=list(map(int,input().split()))
if B>=X-A&X-A>=0:
     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 B>=X-A&X-A>=0:
    print("YES") 
else:
    print("NO")

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

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