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.



Sample input:
3 5 4


Sample output:
YES

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
[A,B,X] = list(map(int,input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

t = x - a

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

if b >= t:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# encoding:utf-8
import copy
import random
import bisect #bisect_left　これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
import collections
from decimal import Decimal # 10進数で考慮できる

mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000

d = collections.deque()
def LI(): return list(map(int, sys.stdin.readline().split()))

A, B, X = LI()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, c = list(map(int, input().split()))
 
d = c - a

ans = "NO"

if d>=0:
    if d <= b:
        ans = "YES"
else:
    ans = "NO"
    
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, x = (int(x) for x in input().split())
if a > x or a+b < x:
    print("NO")
else:
    print("YES")

Submission status: Accepted

Solution code:
a,b,x=map(int,input().split())
print('YES'*(a<=x and a+b>x)or'NO')

Submission status: Accepted

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


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys
A,B,X = map(int,input().split())
if not ( 1 <= A <= 100 and 1 <= B <= 100 and 1 <= X <= 200 ):
    sys.exit()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c, d, x = map(int, input().split())
if c > x:
	print('NO')
else:
	if x - c > d:
		print('NO')
	else:
		print('YES')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,x=map(int,input().split())
print('NYOE S'[~b<a-x<1::2])

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
INF = 1 << 60
MOD = 10**9 + 7 # 998244353
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()

Submission status: Accepted

Solution code:
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 = int(input())
	a, b, x = tin()
	#s = input()
	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
		#input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#n=int(input())
a,b,x=map(int,input().split())
#l=list(map(int,input().split()))
#l=[list(map(int,input().split())) for i in range(n)]

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

Submission status: Accepted

Solution code:
#-*-coding:utf-8-*-

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

Submission status: Accepted

Solution code:
#!/usr/bin/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")

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
# sys.setrecursionlimit(100000)


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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
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')

Submission status: Accepted

Solution code:
#import numpy as np
import sys, math
from itertools import permutations, combinations
from collections import defaultdict, Counter, deque
from math import factorial#, gcd
from bisect import bisect_left #bisect_left(list, value)
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')

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
'''
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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