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:
import sys
import copy

def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func().strip().split()
    [A, B, X] = [int(input_raw[0]), int(input_raw[1]), int(input_raw[2])]
    if A + B >= X and A <= X:
        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=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:
    if A+B >= X :
        print("YES")
    else :
        print("NO")
else :
    print("NO")

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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:
if __name__ == '__main__':
	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=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: Accepted

Solution code:
if __name__ == '__main__':
    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 = list(map(int, input().split()))

value = X - A

if value < 0:
    print('NO')
elif value < 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, c = map(int, input().split())

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Solution code:
#■標準入力ショートカット


def get_next_int():
    return int(float(input()))


def get_next_ints(delim=" "):
    return tuple([int(float(x)) for x in input().split(delim)])


def get_next_str():
    return input()


def get_next_strs(delim=" "):
    return tuple(input().split(delim))


def get_next_by_types(*value_types, delim=" "):
    return tuple([t(x) for t, x in zip(value_types, input().split(delim))])


A, B, X = get_next_ints()


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

Submission status: Accepted

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

Submission status: Accepted

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

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

print("NO")

Submission status: Accepted

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

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

main()

Submission status: Accepted

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

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

if __name__ == '__main__':
    main()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin


def main():
    A, B, X = [int(x) for x in stdin.readline().rstrip().split()]
    if A + B <= X:
        print('NO')
    elif A > X:
        print('NO')
    else:
        print('YES')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = map(int, raw_input().split())
if l[0] > l[2]:
	print "NO"
elif  l[0] + l[1] < l[2]:
	print "NO"
else:
	print "YES"

Submission status: Accepted

Solution code:
def abc094A():
    n = input().split()
    n = list(map(int, n))
    print(["NO", "YES"][n[0] <= n[2] <= (n[0] + n[1])])


abc094A()

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

# AtCoder Beginner Contest
# Problem A

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

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

Submission status: Accepted

Solution code:
def main():
    a, b, x = [int(i) for i in input().split()]
#    print(a,b,x)
    
    if(a<=x and a+b>=x):
        print("YES")
    else:
        print("NO")
    
if __name__=="__main__":
    main()

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,input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
if __name__ == "__main__":
    A, B, X = list(map(int, (input().split(' '))))
    buf = X - A
    if buf < 0:
        print('NO')
        sys.exit()
    if buf <= 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:
#! /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())
if a + b >= x >= a:
   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 X >= A and X <= A+B:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
#!python
# -*- 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 = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve(A, B, X):
    if X < A:
        return "NO"
    if X > A + B:
        return "NO"
    return "YES"
if __name__ == "__main__":
    s = input()
    A, B, X = map(lambda x: int(x), s.split())
    print(solve(A, B, X))

Submission status: Accepted

Solution code:
import sys

a, b, x = list(map(lambda x: int(x), sys.stdin.readline().strip().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: 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 A<=X<=A+B:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

# 2.judge
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 < 0:
    print('NO')
elif X - A > B:
    print('NO')
else:
    print('YES')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding=utf-8


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import re
import doctest


class IO_for_Contest(object):
    @staticmethod
    def my_input():
        # return raw_input()
        return input()

    @staticmethod
    def read_from_input():
        return IO_for_Contest.read_n_int(3)

    @staticmethod
    def read_line():
        return IO_for_Contest.my_input().strip()

    @staticmethod
    def read_int():
        return int(IO_for_Contest.my_input().strip())

    @staticmethod
    def read_n_int(n):
        return list(map(
                    int,
                    re.split('\s+', IO_for_Contest.my_input().strip())))[: n]


def solve():
    buf = IO_for_Contest.read_from_input()
    a, b, x = buf[0], buf[1], buf[2]
    if x >= a and a + b >= x:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    # doctest.testmod()
    solve()

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().rstrip().split()) #input parameters
if X-A<B and X>=A:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().strip()

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

Submission status: Accepted

Solution code:
a = list(map(int ,input().split()))
if a[0]<=a[2] & a[2]<=a[0]+a[1]:
    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 = [int(i) for i in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = map(int, raw_input().split())
if l[2] >= l[0] and l[2] <= l[0] + l[1]:
    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 X > A + B or X < A:
    print("NO")
else:
    print("YES")

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

Submission status: Accepted

Solution code:
def inpl(): return list(map(int, input().split()))
A, B, X = inpl()
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 and 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 and x <= a + b 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+b<c or a>c:
  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:
abx = input().split()
for i in range(3):
    abx[i] = int(abx[i])
a = abx[0]
b = abx[1]
x = abx[2]
if x >= a and x <= a+b:
    print('YES')
else:
    print('NO')

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    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 = (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, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = [input().split() for l in range(2)]
print(a)

N = int(a[0][0]) 
M = int(a[0][1]) 
X = int(a[0][2]) # current place 

goal_len01 = N - X # end place
goal_len02 = X # start place

cost1 = 0
for i in range(goal_len01):
  if str(X+i+1) in a[1]:
    cost1 += 1

cost2 = 0
for i in range(goal_len02):
  if str(i+1) in a[1]:
    cost2 += 1

min_cost = 0
if cost1 >= cost2:
  min_cost = cost2
else:
  min_cost = cost1
  
print(min_cost)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

count_low = 0
count_high = 0
for i in range(A):
  if A[i] > X:
    count_high +=1
  else:
    count_low += 1
    
if count_low >= count_high:
  print(count_high)
else:
  print(count_low)

Submission status: Runtime Error

Solution code:
# -*- coding: <encoding name> -*-

a, b, x = map(int, input())
print('YES' if a <= x <= b else 'NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
ma = lambda : map(int,input().split())
ni = lambda : int(input())
a,b,x = ma

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

Submission status: Runtime Error

Solution code:
a,b,X=[int(i) for i in input().split()]
if x>=a and a+b>=x:
  print('YES')
else:
  print('NO')

Submission status: Runtime Error

Solution code:
a,b,X=[int(i for i in input().split())]
if x>=a and a+b>=x:
  print('YES')
else:
  print('NO')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
package main

import (
	"fmt"
)

func main(){
	var A, B int
	fmt.Scan(&A)
	fmt.Scan(&B)
	if A+B > 16 {
		panic("Exceeded pieces!")
	}
	if A > 8 || B > 8 {
		fmt.Println(":(")
	} else {
		fmt.Println("Yay!")
	}
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
LR = [list(map(int, input().split())) for i in range(N)]
a = 0
for i in range(N):
    a += (LR[i][1] - LR[i][0] + 1)
print(a)

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
low = 0
high  = 0
 
for i in input().split():
    if int(i) < c:
        low += 1
    else:
        high += 1
 
print(min(low, high))

Submission status: Runtime Error

Solution code:
#include <stdio.h>
int main (){
int gatos, animais, X;
scanf("%d%d%d", &gatos,&animais,&X);
if (X >= gatos && animais + gatos >= X)
    printf("YES");
else
	printf("NO");

	return 0;
}

Submission status: Runtime Error

Solution code:
line = input()
known_cat_num, unknow_num, expected_cat_num = [int(n) for n in line.split()][0]
if (expected_cat_num < known_cat_num
        or expected_cat_num - known_cat_num > unknow_num):
    print("NO")
else:
    print("YES")

Submission status: Runtime Error

Solution code:
gatos = int(input())
animais = int(input())
X = int(input())
if (X > animais):
    print("NO")
elif (X <= animais and animais > gatos):
    print("SIM")
elif (animais < gatos):
    print("NO")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

if a <= x:
    input('YES')
else:
    input('NO')

Submission status: Runtime Error

Solution code:
n = int(input())
list = list(map(int, input().split()))
for i in range(len(list)-1):
  copy_list = list.copy()
  copy_list.pop(i)
  copy_list.sort()
  print(copy_list[int(n/2-1)])

Submission status: Runtime Error

Solution code:
n = int(input())
list = list(map(int, input().split()))
for i in range(len(list)):
  copy_list = list.copy()
  copy_list.pop(i)
  copy_list.sort()
  print(copy_list[int(n/2)-1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = Integer.parseInt(sc.next());
        int b = Integer.parseInt(sc.next());
        int x = Integer.parseInt(sc.next());
		int count=0;
		if (a<=x && x<=b){
			System.out.print("Yes");
        }else{
        	System.out.print("No");
        }
    }
}

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a, b, x = (i for i in input().split())
if x-a <= a+b:
  print('Yes')
else:
  print('No')

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

m=max(a)/2
a.append(m)
a.sort()
ind=a.index(m)

if abs(m-a[ind-1])<abs(m-a[ind+1]):
    print(max(a),a[ind-1])
else:
    print(max(a),a[ind+1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
s=input()
print('YES' if int(s[0]) <= int(s[4]) <= int(s[0])+int(s[2]) else 'NO')