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 = [int(m) for m in input().split(" ")]

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
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 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+b >= x and a <= x else '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:
#coding: utf-8
A, B, X = map(int, input().split())
print(["NO","YES"][A<=X<=A+B])

Submission status: Accepted

Solution code:
#coding: utf-8
A, B, X = map(int, input().split())
print(["NO","YES"][A<=X and A+B>=X])

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

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

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:
input_str = input()
input_list = input_str.split(' ')
a = int(input_list[0])
b = int(input_list[1])
x = int(input_list[2])
if a <= x:
    if x <= a + b:
        print('YES')
    else:
        print('NO')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8

INF = float('inf')


def inpl(): return list(map(int, input().split()))


A, B, X = inpl()

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

Submission status: Accepted

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

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:
a,b,x=map(int,input().split());print(["NO","YES"][b>=x-a>=0])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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



if __name__ == '__main__':
    main16()

Submission status: Accepted

Solution code:
#94a
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 and A+B>=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 0<=x-a<=b:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3

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


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


def main():
    A, B, X = map(int, input().split())
    if A <= X and X - A <= B:
        print(YES)
    else:
        print(NO)


if __name__ == '__main__':
    main()

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

Submission status: Accepted

Solution code:
import sys
import math
import collections
import itertools
import array
import inspect

# Set max recursion limit
sys.setrecursionlimit(10000)

# Debug output


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

# Binary converter


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


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

# --------------------------------------------


dp = None


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

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


main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = []
for item in input().split():
    a.append(int(item))
if (a[2] >= a[0]) and (a[2] <= a[0]+a[1]):
    print('YES')
else:
    print('NO')

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lis = input().split()

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

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

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:

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

Submission status: Accepted

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

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

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

    

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, x = (int(y) for y in raw_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 A + B < X 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())

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

Submission status: Accepted

Solution code:
A, B, X = [int(x) for x in 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().strip().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())
if X - A <= B and X - A >= 0:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
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+B>=X and X>=A:
    print('YES')
else:
    print('NO')

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
def solve(A, B, X):
	if A > X:
		print("NO")
		return
	if A+B >= X:
		print("YES")
		return
	print("NO")

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

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:
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 A > X or X > A + B:
    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=[int(n) for n 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())
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());print("YES"*(0<=x-a<=b)or"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:
x,y,z=map(int,input().split())
if x <= z <= x+y :
  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())
is_yes = 0
for i in range(b+1):
    c = a
    c += i
    if c == x:
        is_yes = 1
print("YES" if is_yes else "NO")

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = map(int, raw_input().split())
a = l[0]
b = l[1]
x = l[2]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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())
flag = True

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

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

Submission status: Accepted

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

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

else :
    print('NO')

Submission status: Accepted

Solution code:
import sys

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

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

print("NO")

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = [int(i) for i in input().split()]

if N[0] + N[1] >= N[2] and N[0] <= N[2]:
    print('YES')
else:
    print('NO')

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf8 -*-

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

n = x - a

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

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

Submission status: Accepted

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

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

print(answer)

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
#Cats and Dogs

#入力
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=(int(i) for i in input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

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());print(['YES','NO'][a>x or b<x-a])

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
a = a.rstrip().split(" ")
A = int(a[0])
B = int(a[1])
X = int(a[2])

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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 + B >= X and A <= X:
    print("YES")
else:
    print("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:
# -*- coding: utf-8 -*-
# kakomon toku
import math
import sys
import itertools
import numpy as np

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

# a<= x <= a+b

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
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 or A + B < X):
    print("NO")
else:
    print("YES")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
A, B, X = map(int, input().split())
print(('NO', 'YES')[A <= X <= A + B])

Submission status: Accepted

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

Submission status: Accepted

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