Problem:
 Score : 100 points    Problem Statement There are a total of A + B cats and dogs.
Among them, A are known to be cats, but the remaining B are not known to be either cats or dogs.  Determine if it is possible that there are exactly X cats among these A + B animals.      Constraints  1 \leq A \leq 100  1 \leq B \leq 100  1 \leq X \leq 200  All values in input are integers.         Input Input is given from Standard Input in the following format:  A  B  X       Output If it is possible that there are exactly X cats, print YES ; if it is impossible, print NO .        Sample Input 1 3 5 4      Sample Output 1 YES  If there are one cat and four dogs among the B = 5 animals, there are X = 4 cats in total.       Sample Input 2 2 2 6      Sample Output 2 NO  Even if all of the B = 2 animals are cats, there are less than X = 6 cats in total.       Sample Input 3 5 3 2      Sample Output 3 NO  Even if all of the B = 3 animals are dogs, there are more than X = 2 cats in total.

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

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

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

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

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

Solution (Python):

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


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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):



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

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

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

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

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

Solution (Python):
import re
import doctest


class IO_for_Contest(object):
    @staticmethod
    def my_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__':
    
    solve()

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

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

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

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

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

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

Solution (Python):
a = list(map(int ,input().split()))
if a[0]<=a[2] & a[2]<=a[0]+a[1]:
    print("YES")
else:
    print("NO")

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
a,b,x=[int(k) for k in raw_input().split(" ")]

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

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

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

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

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

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

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

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

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

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

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