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 = [int(_) for _ in 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+B >= X >= 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 x>=b or x<a:
  print('NO')
else:
  print('YES')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
A,B,X=[int(x) for x in stdin.readline().rstrip().split()]
if A+B >= X and A >= X:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
from sys import stdin
A,B,X=[int(x) for x in stdin.readline().rstrip().split()]
if A+B >= X and A >= X:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
from sys import stdin
A,B,X=[int(x) for x in stdin.readline().rstrip().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 > X:
    print('No')
elif A + B >= X:
    print('Yes')
elif A + B < X:
    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,c=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("YES"if a+b>=c else"NO")

Submission status: Wrong Answer

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

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 a<=x:
    tmp=x-a
    if tmp<=b:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,x=map(int,input().split())
if a<=x:
    tmp=x-a
    if tmp<=b:
        print("Yes")
    else:print("No")
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 (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, input().split())
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, input().split())
if ((x-a) < b) & (x > a):
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=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("Yes") if a<=c and c-a<=b else print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print('NYoe s'[a+b<c or c<b::2])

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print('YNeos'[a+b<c or c<b::2])

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (x - a) >= 0 & ((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 x-a>=0:
    if x-a<=b:
        print("Yes")
    else:
        print("No")
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());print("NYOE S"[x in range(a,b+1)::2])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
import sys
# ----------------------------------------------------------------
# Use Solve Function

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

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

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

Submission status: Wrong Answer

Solution code:
n,m,p=map(int,input().split())
if p<=n+m:
  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 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("N0")
elif(X-A<=B):
  print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if 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<=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,c = map(int,input().split())
k = "No"
for i in range(b+1):
    if a+i == c:
        k = "YES"
print(k)

Submission status: Wrong Answer

Solution code:
d,t,c = map(int,input().split())
a = "No"
for i in range(t):
    if d+i == c:
        a = "YES"
print(a)

Submission status: Wrong Answer

Solution code:
A, B, X = map(int, str(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","NO"][a+b>=x>=a])

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 = 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 = map(int,input().split())
print(["Yes","No"][x-a>b or a>x])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if(A+B < X and A>X):
    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())
re = "NO"
for i in range(1,b+1):
    c = a + i
    if c == x:
            re = "YES" 
print(re)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, x = map(int, input().split())
if a + b -1 >= 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+b<x:
    print("No")
elif a>x:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

need_neko_in_b=X-A

print('YES' if B >= need_neko_in_b else 'NO')

Submission status: Wrong Answer

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

need_neko_in_b=X-A

print('YES' if B >= A else 'NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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:
A, B, X = map( int, input().split())

D = A + B

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

Submission status: Wrong Answer

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

D = A + B

if( D <= X):
  print('Yes')
  
if( X <= D):
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = list(map(int, input().split()))
if N[0]+N[1]<=N[2]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
if a[0] < a[2]:
  print("No")
elif 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[2]:
  print("No")
elif 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[2]:
  print("No")
elif a[1] >= a[2]:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b, x = list(map(int, 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<=a+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("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
# coding:utf-8

INF = float('inf')


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


A, B, X = inpl()

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

Submission status: Wrong Answer

Solution code:
a,b,x=map(int,input().split())
if 0<=x-a<=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())
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 a+b>x:
    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=map(int,input().split( ))
if x-a>=b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b,x = (int(_) for _ in input().split())
print('Yes') if x >= a and a+b >= x else print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B,C = 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())
if(A+B>C):
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans = "No"
if A <= X and X <= A+B:
    ans = "Yes"

print(ans)

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