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: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y,z=map(int,input().split())
if x < y and y > z:
  print("YES")
elif x>y and y>z:
  print("NO")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, x = map(int, input().split())
is_yes = 0
for i in range(b+1):
    a += i
    if a == x:
        is_yes = 1
print("YES" if is_yes else "NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

else:
  print('NO')

Submission status: Wrong Answer

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

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

else:
  print('NO')

Submission status: Wrong Answer

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: Wrong Answer

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

elif A==X:
  if B==0:
    print('YES')
  else:
    print('NO')

else:
  print('NO')

Submission status: Wrong Answer

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

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

else :
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N = [int(i) for i in input().split()]
if N[0] + N[1] < N[2] or N[0] > N[2]:
    print('NO')
else:
    print('Yes')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
l = input().split()
a = l[0]
b = l[1]
x = l[2]
if (a > x) or (a + b < x):
    print('NO')
else:
    print('YES')

Submission status: Wrong Answer

Solution code:
l = input().split()
a = l[0]
b = l[1]
x = l[2]
if a > x or a + b < x:
    print('NO')
else:
    print('YES')

Submission status: Wrong Answer

Solution code:
l = input().split()
a = l[0]
b = l[1]
x = l[2]
if a > x or a + b < x:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

if a <= x and x <= a + b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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: Wrong Answer

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

if X > A + B or X < A:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print('Yes' if a <= x <= a+b else 'No')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
if(a+b==c):print("yes")
elif(a==c):print("yes")
else:print("no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
animals = list(map(int, input().split()))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
key = input().split(" ")
cat_dog = list(map(int, key))
cat = cat_dog[0]
x = cat_dog[1]
total = cat_dog[2]
if abs((total - cat)) <= x:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
key = input().split(" ")
cat_dog = list(map(int, key))
cat = cat_dog[0]
x = cat_dog[1]
total = cat_dog[2]
if abs((total - cat)) < x:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
key = input().split(" ")
cat_dog = list(map(int, key))
cat = cat_dog[0]
x = cat_dog[1]
total = cat_dog[2]
if (total -cat) < x:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
def A():
    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: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

if a <= x <= a + b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
l = list(map(int,input().split()))
a,b,x = l[0],l[1],l[2]
print("Yes" if a<=x<=a+b else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,x=map(int, raw_input().split())
print "Yes" if x >= a and x <= a+b else "No"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if int(a[0])<int(a[2]) and int(a[0])+int(a[1])>int(a[2]):
  print("yes")
else:
  print("no")

Submission status: Wrong Answer

Solution code:


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

    if A > X or A + B < X:
        print("No")
    else:
        print("Yes")

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

import sys


def format_and_exec():
    input_lines = [line.strip() for line in sys.stdin.readlines()]
    # 1≤A≤100
    # 1≤B≤100
    # 1≤X≤200
    a, b, x = input_lines[0].split()
    if a > x or a + b < x:
        x_cats_exits = False
    else:
        x_cats_exits = True
    if x_cats_exits:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    format_and_exec()

Submission status: Wrong Answer

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

import sys


def format_and_exec():
    input_lines = [line.strip() for line in sys.stdin.readlines()]
    # 1≤A≤100
    # 1≤B≤100
    # 1≤X≤200
    a, b, x = input_lines[0].split()
    if a >= x:
        x_cats_exits = False
    elif a + b < x:
        x_cats_exits = False
    else:
        x_cats_exits = True
    if x_cats_exits:
        print("YES")
    else:
        print("NO")


if __name__ == "__main__":
    format_and_exec()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8

A, B, X = [int(i) for i in input().split()]

if X >= A and X - A <= B:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# coding: utf-8

A, B, X = [int(i) for i in input().split()]

if X <= A and X - A <= B:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

if a<=x and x<=a+b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# coding=utf-8
a, b, x = map(int, input().split())
if a <= x and x<= a+b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
def catOrDog(A, B, X):
    if X < A:
        print('NO')
    elif A + B > X + 1:
        print('YES')
    else:
        print('NO')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

abx = [int(x) for x in abx]

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def judge(a, b, x):
	if 0 <= x-a and x-a <= b: return 'Yes'
	else: return 'No'

inpt = map(int, raw_input().split())

print judge(inpt[0], inpt[1], inpt[2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
if 0 <= c-a <= b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print(["NO","YES"][c-a<0 or c-a>b])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A <= X <= A + B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B, X = map(int, input().split())
if X - A in range(B):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

if A <= X <= A + B :
    print("Yes")
else:
     print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B,X = map(int,input().split())
if (X<A):
    print("No")
elif ((X-A)<=B):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

if A<=X<=A+B:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A,B,X = map(int,input().split())
if (X < A):
    print("No")
elif ((X-A)<=B):
    print("Yes")
else:
   print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
abx = list(map(int,input().split()))
a = abx[0]
b = abx[1]
x = abx[2]
if a + b >= x and a <= x:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

if A<=C and C<= A+B:
    print("Yes")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
# coding : utf-8

import numpy as np

A = [int(i) for i in input().split()]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
abx = list(map(int,input().split()))
if abx[2] >= abx[0] and abx[0] + abx[1] >= abx[2]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b,x = [int(i) for i in input().split()]
c = a + b
d = x + b
if not x > c:
  if b-x+(a+x) == c:
    print("YES")
elif d == c:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B, X = map(int, input().split())
D = A + B
if 1<= A <= 100 and 1 <= B <= 100 and A <= X <= D and X :
    print("Yes")
else:
     print("No")

Submission status: Wrong Answer

Solution code:
ABC = input().split(' ')
a = int(ABC[0])
b = int(ABC[1])
c = int(ABC[2])

if a < c and c < a+b:
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

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

if ((a + b >= c and a < c) or a == c):
  print("YES")
else:
  print ("No")

Submission status: Wrong Answer

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

if a > x:
    print('NO')
elif a + b >= x:
    print('Yes')
elif a + b < x:
    print('No')

Submission status: Wrong Answer

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

if __name__ == '__main__':
    flag = False
    A,B,X = map(int,input().split())

    if (X-A)<B:
        flag = True

    if flag == True:
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A = input().split()
A = [ int(x) for x in A]

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

else:
    print("NO")

Submission status: Wrong Answer

Solution code:
a,b,x = [int(i) for i in input().split()]
c = a + b
d = x + b
if c - x <= b and not x > c:
  if d == c:
    print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

A = input().split()
A = [ int(x) for x in A]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A>X: print("NO")

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

print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A = input().split()
A = [ int(x) for x in A]

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

Submission status: Wrong Answer

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

# 入力を各変数に格納
cat_num, both_num, sum_num = map(int, input().split())

if cat_num + both_num < sum_num or cat_num > both_num:
	print("NO")
else:
	print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a,b,x = map(int, raw_input().split())
if a>=x:
 if x<=a+b:
  print("YES")
 else:
  print("NO")
else:
 print("NO")

Submission status: Wrong Answer

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


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

if X==A:
    print("Yes")
elif A < X and X < (A+B):
    print("Yes")
elif A < X and X == (A+B):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a,b,x = map(int, raw_input().split())
if a>=x:
 if x<a+b:
  print("YES")
 else:
  print("NO")
else:
 print("NO")

Submission status: Wrong Answer

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

	x_a = X-A

	if x_a<1:
		return "NO"

	if B>=x_a:
		return "YES"
	else:
		return "NO"

print(main())

Submission status: Wrong Answer

Solution code:

a, b, x = map(int, input().split())
if a == x:
    print('Yes')

elif a > x:
    print('No')

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

    else:
        print('No')

Submission status: Wrong Answer

Solution code:
l = input().split()
if l[0] <= l[2] and l[2] <= (l[0] + l[1]):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

if x - b <= a <= x:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
l = input().split()
if int(l[0])+int(l[1])>=int(l[2]):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

if a > x:
    print("No")
elif b < x-a:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

if x>=a: print("YES")
else: print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding : utf-8

import numpy as np

A = input().split()
A = [int(i) for i in A]

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

Submission status: Wrong Answer

Solution code:
#coding: utf-8
A,B,X = map(int,input().split())
if A <= X and A + B >= X:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding : utf-8

import numpy as np

A = input().split()
A = [int(i) for i in A]

if(A[0] < A[2] and A[0]+A[1] > A[2]):
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,x=input().split()
A=int(a);B=int(b);X=int(x)
if X>A:
    if X-A<=B:
        print("YES")
    else:
        print("NO")
else:
    print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if(a <= x):
    if(a + b >= x):
        print("Yes")
        exit()

print("No")

Submission status: Wrong Answer

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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