Problem:


Score : 100 points

Problem Statement

There are a total of A + B cats and dogs.
Among them, A are known to be cats, but the remaining B are not known to be either cats or dogs.

Determine if it is possible that there are exactly X cats among these A + B animals.

Constraints

1 \leq A \leq 100

1 \leq B \leq 100

1 \leq X \leq 200

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B X

Output

If it is possible that there are exactly X cats, print YES; if it is impossible, print NO.

Sample Input 1

3 5 4

Sample Output 1

YES

If there are one cat and four dogs among the B = 5 animals, there are X = 4 cats in total.

Sample Input 2

2 2 6

Sample Output 2

NO

Even if all of the B = 2 animals are cats, there are less than X = 6 cats in total.

Sample Input 3

5 3 2

Sample Output 3

NO

Even if all of the B = 3 animals are dogs, there are more than X = 2 cats in total.



Sample input:
3 5 4


Sample output:
YES

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B, X = map(int, input().split())
if A > B:
    print('NO')
elif 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,X = map(int, input().split())

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

flag=False
for i in range(1,b+1):
    if a+i==x:
        flag = True
        break

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
"""
author : halo2halo
date : 24, Jan, 2020
"""

import sys

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A, B, C = map(int, readline().split())

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

Submission status: Wrong Answer

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

if A <= X and 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, 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:
  print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B, X = map(int, input().split())
if abs(X-B) <= A and A <= X:
    print("Yes")
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:
import math
import queue
import bisect
import heapq
import time
import itertools

mod = int(1e9+7)

def swap(a,b):
    return (b,a)

def my_round(a,dig=0):
    p = 10 ** dig
    return (a * p * 2 + 1) // 2 / p

def gcd(a,b): #最大公約数
    if (a<b):
        a,b = swap(a,b)
    if (b==0):
        return a
    else:
        return gcd(b,a%b)

def lcm(a,b): #最小公倍数
    return a/gcd(a,b)*b

def divisors(a): # 約数列挙
    divisors = []
    for i in range(1,int(a**0.5)+1):
        if a%i==0:
            divisors.append(i)
            if i!=a//i:
                divisors.append(a//i)
    return divisors

def is_prime(a): #素数判定
    if a<2:
        return False
    elif a==2:
        return True
    elif a%2==0:
        return False
    sqrt_num = int(a**0.5)
    for i in range(3,sqrt_num+1,2):
        if a%i==0:
            return False
    return True

def prime_num(a): #素数列挙
    pn = [2]
    for i in range(3,int(a**0.5),2):
        prime = True
        for j in pn:
            if i%j==0:
                prime = False
                break
        if prime:
            pn.append(i)
    return pn

def prime_fact(a): #素因数分解
    sqrt = math.sqrt(a)
    res = []
    i = 2
    if is_prime(a):
        res.append(a)
    else:
        while a!=1:
            while a%i==0:
                res.append(i)
                a //= i
            i += 1
    return res

def main():
    a,b,x = map(int,input().split())
    if a > x:
        print('No')
    elif a + b >= x:
        print('Yes')
    else:
        print('No')
    return

if __name__=='__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num = input().split()
num_i = [int(s) for s in num]

if(num_i[0]+num_i[2] < num_i[1]):
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline
a,b,x=map(int,input().split())
print("YES" if b<=x<=a+b else "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("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 <= x) and (x <= (a + b)):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if li[0]<=li[2] and li[0]+li[1]>=li[2]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

sum = 700

for i in s:
    if i == "o":
        sum += 100

print(sum)

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))


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+1:
  print('NO')
else:
  print('YES')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
##### 解けた #####

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

if X<=B: # ありえる場合
    print("YES")
else: # ありえない場合
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

dogs = ((A+B)-A)

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

Submission status: Wrong Answer

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

dogs = ((A+B)-A)

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

Submission status: Wrong Answer

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

dogs = ((A+B)-A)

if dogs >= 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 > X:
    print("No")
elif X-A <= B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
from sys import stdin
import numpy as np
a,b,c= [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
import numpy as np
a,b,c= [int(x) for x in stdin.readline().rstrip().split()]

if c-a >= b:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
a=[int(x) for x in a.split()]
b=a[0]+a[1]
c=a[2]
print("Yes" if a[0]<=c and c<=b else "No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

sub = X - A

if sub > 0:
  if sub < 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:
  print("NO")
elif A+B > X:
  print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, x = map(int, input().split())
print("NYoe s"[a+b>=x and a < x::2])

Submission status: Wrong Answer

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

if b>abs(a-x) and a<x:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if x - a < 0:
    print("No")

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

    else:
        print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

if 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 <= B 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:
  print('No')
  exit()

if (a+b) < x:
  print('No')
  exit()

print('Yes')

Submission status: Wrong Answer

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

if x > a:
  print('No')
  exit()

if (a+b) < x:
  print('No')
  exit()

print('Yes')

Submission status: Wrong Answer

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

if a > x:
  print('No')
  exit()

if (a+b) > x:
  print('No')
  exit()

print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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:
# ABC094 A - Cats and Dogs
a,b,x = map(int,input().split())
ans = ''
for i in range(1,b+1):
    if a+i == x:
        ans = 'YES'
        break
    else:
        ans = 'NO'
print(ans)

Submission status: Wrong Answer

Solution code:
# ABC094 A - Cats and Dogs
a,b,x = map(int,input().split())

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if b >= c:
  print("YES")
else:
  print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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