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

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

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

Solution (Python):
a,b,c = map(int,input().split())
if(a<=c and c<=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,c=map(int,input().split())
if c<=a+b and a<=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):
def cats_and_dogs(A: int, B: int, X: int) -> bool:
    return A <= X and X <= A+B


if __name__ == "__main__":
    A, B, X = map(int, input().split())
    yes = cats_and_dogs(A, B, X)
    print('YES' if yes else '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())
print("YES" if a<=x<=a+b else "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())
ans = "NO"
if(X <= A+B and A <= X):
  ans = "YES"
print(ans)

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

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

Solution (Python):

A, B, X = map(int, input().split())
print(['NO', 'YES'][A <= X and X <= A + B])

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

Solution (Python):
ri = lambda: int(input())
rl = lambda: list(map(int,input().split()))
rr = lambda N: [ri() for _ in range(N)]
YN = lambda b: print('YES') if b else print('NO')
yn = lambda b: print('Yes') if b else print('No')
OE = lambda x: print('Odd') if x%2 else print('Even')
INF = 10**18

a,b,x=rl()

YN(a<= x and x <= a+b)

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

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

Solution (Python):

import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
A, B, X = map(int, input().split())

ans = "YES"
if A+B < X:
    ans = "NO"
elif A > X:
    ans = "NO"
print(ans)

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

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

Solution (Python):
A,B,X=map(int,input().split())
print('YNEOS'[not A<=X<=A+B::2])

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

Solution (Python):


import itertools
import collections
import bisect

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


if __name__ == '__main__':
    main()

Solution (Python):
import sys

def main():
  input = sys.stdin.readline
  A, B, X = map(int, input().split())
  if A <= X and A+B >= X:
    print('YES')
  else:
    print('NO')


if __name__ == '__main__':
  main()

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

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

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

ans = A <= X and (A + B) >= X

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

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

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

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

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

Solution (Python):
from sys import stdin
a,b,x = [int(x) for x in stdin.readline().rstrip().split()]
 
if a>x:
  print('NO')
elif a<x and (x-a)>b:
  print('NO')
else:
  print('YES')

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

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

Solution (Python):

import copy
import numpy as np
import random


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

if a<= x <= a+b:
    ans = True
else:
    ans = False

if ans:
    print("YES")
else:
    print("NO")

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


if __name__ == "__main__":
    main()

Solution (Python):
A, B, X = map(int, input().split())
if A <= X and A + B >= X:
    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(n) for n in input().split()]

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

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

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

Solution (Python):
a,b,x=map(int,input().split());print("NYOE S"[x in range(a,a+b+1)::2])

Solution (Python):
a,b,x=map(int,input().split());print("YES"if x in range(a,a+b+1)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 <= A+B:print('YES')
else:print('NO')

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

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

Solution (Python):

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

Solution (Python):
s = list(map(int,input().split()))
if s[0] + s[1] >= s[2] and s[0]<=s[2]:
    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, b, x = map(int, input().split())

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

Solution (Python):
A,B,X = map(int, raw_input().split())
print "YES" if A<=X<=A+B else "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(x) for x in input().split()]

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

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

Solution (Python):
int_a, int_b, int_x = map(int, input().split())


if int_a <= int_x <= int_a + int_b:
    print("YES")
else:
    print("NO")

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

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

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

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

Solution (Python):
a, b, x = map(int,input().split())
ans = 0
if a <= x:
    c = x - a
    if c <= b:
        ans += 1
if ans :
    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 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):

import sys



def solve(lines):
    A,B,X = map(int, lines.pop(0).split(' '))
    if ( A <= X and A + B >= X ):
        print('YES')
    else:
        print('NO')




lines = [x.strip() for x in sys.stdin.readlines()]




solve(lines)

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

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

Solution (Python):
n,m,p=map(int,input().split())
if p<=n+m and n<=p:
  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=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:
    ans = "YES"
else :
    ans = "NO"
print(ans)

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

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

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


main()

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

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

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

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

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

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

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

Solution (Python):
"""AtCoder"""

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

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

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

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

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

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


def main():
    na = list(map(int, input().split()))
    A, B, X = na[0], na[1], na[2]

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


if __name__ == '__main__':
    main()

Solution (Python):



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

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

Solution (Python):
a,b,c = map(int,input().split())
k = "NO"
for i in range(b+1):
    if a+i == c:
        k = "YES"
print(k)

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

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

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

Solution (Python):
a,b,x=map(int,input().split())
print('YNEOS'[not(a+b>=x and x>=a) :: 2])

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

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

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

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

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

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

Solution (Python):
def main():
  a, b, x = map(int, input().split())
  
  if a > x:
    print('NO')
    return
  
  if a + b < x:
    print('NO')
    return
  
  print('YES')
  return 
  
if __name__ == '__main__':
  main()

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

Solution (Python):
a,b,c=map(int,input().split())
if a+b>=c>=a:
  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,c=map(int,input().split())
print(['NO','YES'][(a+b>=c)*(a<=c)])

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

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

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

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

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

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());print("YNEOS"[a+b<x or a>x::2])

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

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

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

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

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

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

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

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


if __name__ == '__main__':
    main()

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

Solution (Python):

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

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

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

Solution (Python):



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


if __name__ == "__main__":
    main()

Solution (Python):

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

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

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

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

Solution (Python):
cats,animals,expect_cats = [int(i) for i in input().split()]

if (cats > expect_cats) :
	print("NO")
elif (cats+animals < expect_cats) :
	print("NO")
else :
	print("YES")

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

need_neko_in_b=X-A

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

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

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

Solution (Python):

print((lambda x: 'YES' if 0 <= x[2]-x[0] <= x[1] else 'NO')(list(map(int, input().split()))))

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

Solution (Python):
a,b,c=map(int,input().split())
flg = False
if a+b<c:
    flg=True
if a>c:
    flg=True
print("YNEOS"[flg::2])

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

Solution (Python):
a,b,x=[int(i) for i in input().split()]
print('YES' if a<=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(_) for _ in input().split()]

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

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

D = A + B

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

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

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

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

if __name__ == "__main__":
    main()

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
a = list(map(int,input().split()))
if a[0] > a[2] :
  print("NO")
elif a[2] - a[0] <= a[1]:
  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,B,X=map(int,input().split())

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

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

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

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

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

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

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

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

Solution (Python):
a,b,x=map(int,input().split());print(["NO","YES"][~b<a-x<1])

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

Solution (Python):
a,b,x=map(int,input().split());print("YNEOS"[x-a not in range(b+1)::2])

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

Solution (Python):
a,b,x=(int(i) for i in input().split(' '))
print("YES" if a<=x and x<=a+b else '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, raw_input().split())

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

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

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

Solution (Python):
a,b,c=map(int,input().split())
print('YNEOS'[b<c-a or a>c::2])

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

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

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

Solution (Python):
a, b, x = list(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 + B < X) or (A > X):
    print('NO')
else:
    print('YES')

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

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

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

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

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

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

print("YES" if 0 <= x-a and x <= a+b else "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, 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())

print('YES' if a+b >= x and a <= x else '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())
print(["NO","YES"][A<=X<=A+B])

Solution (Python):

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

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

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

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

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

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

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

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

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

Solution (Python):


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

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

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

Solution (Python):
import sys
Input = sys.stdin.readline


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

else:
    print("NO")

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

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

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

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

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

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

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

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

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

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

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

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

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