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):
i = list(map(int, input().split()))
if(i[0] > i[2]):
	print("NO")
	exit()
if(i[0]+i[1]>=i[2]):
	print("YES")
else:
	print("NO")

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

Solution (Python):
import sys

a, b, x = map(int, sys.stdin.readline().split())

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

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

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

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

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

Solution (Python):
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools,fractions,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
mod2 = 998244353
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

a,b,c = inpl()
if a <= c <= 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):

import sys

YES = "YES"  
NO = "NO"  


def solve(A: int, B: int, X: int):
    if X-A<=B and X >= A:
        print(YES)
    else:
        print(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))  
    solve(A, B, X)

if __name__ == '__main__':
    main()

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a,b,c,=INTM()
    if a<=c and c<=a+b:
        print('YES')
    else:
        print('NO')
if __name__ == '__main__':
    do()

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

print(ans)

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

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

a, b, x = map(int, input().split())
print('YNEOS'[not(0 <= x-a <= b)::2])

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

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

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

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

Solution (Python):

import sys, math, itertools, heapq, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans = count = 0

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

Solution (Python):

import sys, math, itertools, heapq, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans = count = 0

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 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):
def examA():
    A, B, X = LI()
    ans = "NO"
    if A<=X<=A+B:
        ans = "YES"
    print(ans)

import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
from bisect import bisect

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A, B, X = MAP()

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

Solution (Python):
a, b, x = list(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<=x<=a+b else "NO")

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

cat = A-1
for i in range(B+1):
    cat += 1
    if cat == X:
        print("YES")
        exit()
        
print("NO")

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

Solution (Python):
from sys import stdin
import numpy as np
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 a <= x <= a+b:
  print("YES")
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())
if (0 <= 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 x-a>=0:
  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 a+b>x) or a==x:
    print("YES")
else:
    print("NO")

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

if X >= A and X <= A + B:
    ans = "YES"
else:
    ans = "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):
a, b, x = [int(i) for i in 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 <= x <=a+b:
    print("YES")
else:print("NO")

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

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

main()

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

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

Solution (Python):


import sys










def main():
    a, b, x = (int(i) for i in sys.stdin.readline().split())
    print('YES' if x >= a and b >= x - a else '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 <= A+B:
    print("YES")
else:
    print("NO")

Solution (Python):

a, b, x = [int(s) for s in input().split()]
print('YES' if a + b >= x and a <= x else 'NO')

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

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

d = c - a

ans = 'NO'

if d >= 0 and b >= d :
	ans = 'YES'
	
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 = 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("NYOE S"[a+b>=x>=a::2])

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

if x>= a 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+B>=X and A<=X else '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()]

flg = True
if a+b < x:
    flg = False
elif a > x:
    flg = False
else:
    pass

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

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

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

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

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

Solution (Python):
A, B, C = map(int, input().split())
if A == C or (A < C and B >= C - A):
  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 = list(map(int,input().split()))
A=a[0]
B=a[1]
X=a[2]
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= 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 + B >= X and A <= X 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 x-a >= 0 and b >= x-a else "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())
print(["NO","YES"][a <= x <= a+b])

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

else:
    if b < x - a:
        print("NO")

    else:
        print("YES")

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 <= 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:
    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())
if a > x:
  print('NO')
elif 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("YES" if a<=x and x<=a+b else "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 slove():
    import sys
    input = sys.stdin.readline
    a, b, x = list(map(int, input().rstrip('\n').split()))
    if a <= x <= a + b:
        print("YES")
    else:
        print("NO")


if __name__ == '__main__':
    slove()

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

Solution (Python):
'''A - Cats and Dogs
https://atcoder.jp/contests/abc094/tasks/abc094_a

猫と犬が合わせて A + B 匹います． このうち A 匹は猫であることがわかっていますが，
残りの B 匹は猫と犬のどちらであるかわかっていません．

この A + B 匹の中に，猫がちょうど X 匹いるということはありうるかどうか判定してください．

>>> main(3, 5, 4)
YES
>>> main(2, 2, 6)
NO
>>> main(5, 3, 2)
NO'''


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


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

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
input = sys.stdin.readline

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

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


if __name__ == "__main__":
    main()

Solution (Python):
A,B,X=map(int,input().split());print('YNEOS'[A>X or A+B<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())

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

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

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

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

aa094()

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

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

if x < a:
  print('NO')
  exit()

if (a+b) < x:
  print('NO')
  exit()

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

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

Solution (Python):
a, b, c = 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 > 0:
    print('NO')
elif 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):
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("YES" if a<=x and b>=(x-a) else "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')

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

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

Solution (Python):
a,b,c = 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())
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):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    

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


def yes():
    if a > x:
        return False
    return a + b >= x


print('YES' if yes() is True else 'NO')

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

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

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

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 0 <= x-a and x-a <= b else "NO")

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

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

Solution (Python):
s=list(input().split())
a=int(s[0])
b=int(s[1])
x=int(s[2])
if 0<=(x-a)<=b:
  print('YES')
else:
  print('NO')

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

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

Solution (Python):
cat,some,obj=map(int,input().split())
if cat<=obj and cat+some>=obj:
  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('NYOE S'[a<=x<=a+b::2])

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

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=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 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')