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 (x-a<=b) & (x-a>=0)else'NO')

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

Solution (Python):
a,b,x=map(int,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 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())
print('NYOE S'[~b<a-x<1::2])

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

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

Solution (Python):
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

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

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

Solution (Python):
a,b,x = map(int,input().split())
if b >= x - a >= 0:
	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 <= 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):
def main():
    A, B, X = map(int, input().split())
    if A + B < X:
        print('NO')
    elif A > X:
        print('NO')
    else:
        print('YES')
main()

Solution (Python):

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


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

Solution (Python):
import sys

input = sys.stdin.readline


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

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

    print(ans)


if __name__ == "__main__":
    main()

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

Solution (Python):
import sys

input_methods=['clipboard','file','key']
using_method=0
input_method=input_methods[using_method]

tin=lambda : map(int, input().split())
lin=lambda : list(tin())
mod=1000000007



def main():
	
	a, b, x = tin()
	
	ret = 'YES' if (x >= a and x <= a+b) else 'NO'
	print(ret)
	
	

isTest=False

def pa(v):
	if isTest:
		print(v)
		
def input_clipboard():
	import clipboard
	input_text=clipboard.get()
	input_l=input_text.splitlines()
	for l in input_l:
		yield l

if __name__ == "__main__":
	if sys.platform =='ios':
		if input_method==input_methods[0]:
			ic=input_clipboard()
			input = lambda : ic.__next__()
		elif input_method==input_methods[1]:
			sys.stdin=open('inputFile.txt')
		else:
			pass
		isTest=True
	else:
		pass
		
			
	ret = main()
	if ret is not None:
		print(ret)

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 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):


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

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

if __name__=="__main__":
    main()

Solution (Python):

 
input_data = list(map(int,input().split()))
 
neko = input_data[0]
neko_inu = input_data[1]
d = input_data[2]
 
if neko > d:
    print("NO")
elif neko+neko_inu < d:
    print("NO")
else:
    print("YES")

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



def main():
    A, B, X = [int(i) for i in input().strip().split()]
    for i in range(B+1):
        if A + i == X:
            return "YES"
    return "NO"


if __name__ == "__main__":
    print(main())

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

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

Solution (Python):
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

a,b,x=nm()

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):

import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

A, B, X = lr()
bl = A <= X <= A + B
print('YES' if bl else 'NO')

Solution (Python):

import sys, math
from itertools import permutations, combinations
from collections import defaultdict, Counter, deque
from math import factorial
from bisect import bisect_left 
sys.setrecursionlimit(10**7)
enu = enumerate
MOD = 10**9+7
def input(): return sys.stdin.readline()[:-1]
pl = lambda x: print(*x, sep='\n')

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

for a in range(B+1):
    if A+a == X:
        print('YES')
        exit()
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 a+b >= x and a <= x:
    print('YES')
else:
    print('NO')

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

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

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

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

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

Solution (Python):
def output(ok):
    if ok: print('YES')
    else: print('NO')
a,b,c = map(int,input().split())
ok = True
if a+b < c: ok = False
elif a > c: ok = False
else:
    c -= a
    if c > b: ok = False
output(ok)

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

Solution (Python):
def actual(a, b, x):
    if a <= x <= a + b:
        return 'YES'

    return 'NO'

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

Solution (Python):
def actual(a, b, x):
    if a > x:
        return 'NO'

    if a + b >= x:
        return 'YES'

    return 'NO'

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

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

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

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

if __name__ == '__main__':
    main()

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 = list(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())
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 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 = map(int,input().split())

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

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

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

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

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

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

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

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

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

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

Solution (Python):
'''
Author : Shubhanshu Jain;
'''
import sys
input = sys.stdin.readline
from collections import Counter
import math
import random;
mod =1000000007
r1 = lambda : int(input());
rm = lambda : map(int,input().split());
rls = lambda : list(rm())

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

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

Solution (Python):
from sys import stdin
A, B, C = [int(x) for x in stdin.readline().rstrip().split()]
if C<=(A+B) and A <= C:
    print("YES")
else:
    print("NO")

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

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

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

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

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

Solution (Python):
def li():
    return list(map(int, input().split()))


def mi():
    return map(int, input().split())


def ii():
    return int(input())


A, B, X = mi()

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

Solution (Python):
y = input().split()
a = int(y[0])
b = int(y[1])
x = int(y[2])
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 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):


import sys






























def main():
    mod = 1000000007                
    inf = float('inf')              
    
    sys.setrecursionlimit(10**6)    
    def input(): return sys.stdin.readline().rstrip()
    def ii():    return int(input())
    def mi():    return map(int, input().split())
    def mi_0():  return map(lambda x: int(x)-1, input().split())
    def lmi():   return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():    return list(input())
    
    
    a, b, x = mi()
    print('YES') if a <= x <= a + b 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 = map(int,input().split())
print('YES' if x >= a and (a+b) >= x 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 x<=a+b else "NO" )

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

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

Solution (Python):

import sys
input = sys.stdin.readline









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

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

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

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 X-A<=B and A<=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):
import sys
sys.setrecursionlimit(10 ** 5 + 10)
def input(): return sys.stdin.readline().strip()

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()

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

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

Solution (Python):






import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache






MOD = 10**9+7
INF = float('inf')






def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]


def inv(n): return pow(n, MOD-2, MOD)


kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret


def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr


def lcm(a, b):
    return a * b // gcd (a, b)





A,B,X = inputIL()

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

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

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

Solution (Python):
import sys
import math
import bisect

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

if __name__ == "__main__":
    main()

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

if __name__ == '__main__':
    main()

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

Solution (Python):

"""
Created on Mon May 11 16:27:28 2020

@author: shinba
"""


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):
def YN(P):
    if P:
        print("YES")
    else:
        print("NO")

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

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):

import sys

YES = "YES"  
NO = "NO"  


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



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))  
    print(solve(A, B, X))

def test():
    import doctest
    doctest.testmod()

if __name__ == '__main__':
    
    main()

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

if __name__ == '__main__':

    ABC_94_A()

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

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

if __name__ == '__main__':
    main()

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

Solution (Python):

import sys
import math
from bisect import bisect_left, bisect_right, insort_left, insort_right
from collections import defaultdict, deque, Counter
from copy import deepcopy
from fractions import gcd
from functools import lru_cache, reduce
from heapq import heappop, heappush
from itertools import accumulate, groupby, product, permutations, combinations, combinations_with_replacement
from math import ceil, floor, factorial, log, sqrt, sin, cos
from operator import itemgetter
from string import ascii_lowercase, ascii_uppercase, digits
sys.setrecursionlimit(10**7)
rs = lambda: sys.stdin.readline().rstrip()
ri = lambda: int(rs())
rf = lambda: float(rs())
rs_ = lambda: [_ for _ in rs().split()]
ri_ = lambda: [int(_) for _ in rs().split()]
rf_ = lambda: [float(_) for _ in rs().split()]
INF = float('inf')
MOD = 10 ** 9 + 7
PI = math.pi

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

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

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

Solution (Python):

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

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

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

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

if __name__ == "__main__":
    main()

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

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

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

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

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

Solution (Python):
a,b,c=map(int,input().split())
c-=a
if c<0:
    print("NO")
elif b>=c:
    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 x-a <= b and x >= a 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 b >= 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):
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop

import collections

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

Solution (Python):
a,b,x=map(int,input().split())
ab=a+b
if a<=x<=ab:
  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())
print('YNEOS'[a>x or b<x-a::2])

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())
print("YES" if c - a <= b and a <= c 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):
y = input().split()
a = int(y[0])
b = int(y[1])
x = int(y[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:
  print("NO")
elif 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")