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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input().split(' ')
A=int(a[0])
B=int(a[1])
X=int(a[2])
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())
s = "Yes"
if A > X or A+B < X:
  s = "No"
print(s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import math

cat, meta, x = map(int, input().split())

if cat < x and meta - cat <= meta:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import math

cat, meta, x = map(int, input().split())

if cat <= x and meta - cat <= meta:
    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 <= a + b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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


if __name__ == "__main__":
    main()

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())
print('YNeos'[x<a or x>=a+b::2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B,X=map(int,input().split())
if A<=X and 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:
# -*- coding: utf-8 -*-
 
## Library
 
import sys
from fractions import gcd
import math
from math import ceil,floor
import collections
from collections import Counter
import itertools
import copy
 
## input
 
# N=int(input())
# A,B,C,D=map(int, input().split())
# S = input()
# yoko = list(map(int, input().split()))
# tate = [int(input()) for _ in range(N)]
# N, M = map(int,input().split()) 
#    P = [list(map(int,input().split())) for i in range(M)]
#    S = []
#    for _ in range(N):
#        S.append(list(input()))
 
A,B,X=map(int, input().split())

if A<X:
    print("NO")
    sys.exit()

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

Submission status: Wrong Answer

Solution code:
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

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

Submission status: Wrong Answer

Solution code:
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

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

Submission status: Wrong Answer

Solution code:
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, x = map(int, input().split())
for i in range(1, b+1):
    if a + i == x:
        print('YES')
        exit()
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())
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 >= 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")
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, c = list(map(int, input().split()))

d = c - a

if d>=0:
    if d <= b:
        print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
A,B,X = map(int,input().split())
if not ( 1 <= A <= 100 and 1 <= B <= 100 and 1 <= X <= 200 ):
    sys.exit()

if (B + 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<=x and 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 0 < X - A <= B:
    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 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 (A < X) and (B < 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 (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,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 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())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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:
#-*-coding:utf-8-*-

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

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

if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python
 
input_data = list(map(int,input().split()))
 
neko = input_data[0]
neko_inu = input_data[1]
d = input_data[2]
 
if neko >= d:
    print("NO")
elif neko+neko_inu < d:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

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

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

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

if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python
 
input_data = list(map(int,input().split()))
 
neko = input_data[0]
neko_inu = input_data[1]
d = input_data[2]
 
if neko >= d:
    print("NO")
 
d -= neko
if neko_inu < d:
    print("NO")
    
print("YES")

Submission status: Wrong Answer

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

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

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

if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python

input_data = list(map(int,input().split()))

neko = input_data[0]
neko_inu = input_data[1]
d = input_data[2]

if neko >= d:
    print("NO")

d -= neko
if neko_inu < d:
    print("NO")

print("YES")

Submission status: Wrong Answer

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

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

    if b-x>0 and a<x:
        print("Yes")
    else:
        print("No")

if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python

input_data = list(map(int,input().split()))

neko = input_data[0]
neko_inu = input_data[1]
d = input_data[2]

if neko >= d:
    print("NO")

if neko_inu < d:
    print("NO")

print("YES")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A > X:
  print('No')
  sys.exit()
if A+B < X:
  print('No')
  sys.exit()
  
print('Yes')

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if X-A<=B or A>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())
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 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())
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 else 'NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


def mi():
    return map(int, input().split())


def ii():
    return int(input())


A, B, X = mi()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, y, z = map(int, input().split())
if x * y >= z:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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 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 + 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("N0")

Submission status: Wrong Answer

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

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-c<=b:
  print('YES')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
a, b, x = list(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:
  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())
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())

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

Submission status: Wrong Answer

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

#############
# Libraries #
#############

import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache


#############
# Constants #
#############

MOD = 10**9+7
INF = float('inf')

#############
# Functions #
#############

######INPUT######
def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]

#####Inverse#####
def inv(n): return pow(n, MOD-2, MOD)

######Combination######
kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

######Factorization######
def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr

#####LCM#####
def lcm(a, b):
    return a * b // gcd (a, b)

#############
# Main Code #
#############

A,B,X = inputIL()

if X>A+B or X<=A:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

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

#############
# Libraries #
#############

import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache


#############
# Constants #
#############

MOD = 10**9+7
INF = float('inf')

#############
# Functions #
#############

######INPUT######
def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]

#####Inverse#####
def inv(n): return pow(n, MOD-2, MOD)

######Combination######
kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

######Factorization######
def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr

#####LCM#####
def lcm(a, b):
    return a * b // gcd (a, b)

#############
# Main Code #
#############

A,B,X = inputIL()

if X>A+B or X<A:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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