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

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

Submission status: Wrong Answer

Solution code:
S = input().split()
A, B, X = int(S[0]), int(S[1]), int(S[2])
diff = X - A
if diff > 0 and diff < 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())
print("YES" if a+b >= x else "NO")

Submission status: Wrong Answer

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

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


if __name__ == "__main__":
    resolve()

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 x<=a+b else 'NO')

Submission status: Wrong Answer

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

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<=a+b else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B, X = [int(x) for x in input().split()]
print('YNeos'[A<=X<=A+B-1::2])

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

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

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 b>=x else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


if __name__ == "__main__":
    test()

Submission status: Wrong Answer

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


if __name__ == "__main__":
    test()

Submission status: Wrong Answer

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


if __name__ == "__main__":
    test()

Submission status: Wrong Answer

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


if __name__ == "__main__":
    test()

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 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("YES" if a+b >= x else "No")

Submission status: Wrong Answer

Solution code:
n,m,x,*l=map(int,open(0).read().split())
s=sum(i in l for i in range(x))
print(min(s,m-s))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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+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:
#94

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

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

Submission status: Wrong Answer

Solution code:
#94

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

if X >= A and X-A <= B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
#94

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

if X >= A and X-A < B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
#94

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

if X < A or 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<=x<=a+b else 'no')

Submission status: Wrong Answer

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

if x[0] + x[1] >= x[2]:
  if x[1] >= x[2] - x[0]:
    print("YES")
  else:
    print("NO")

else:
  print("NO")

Submission status: Wrong Answer

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

if x[0] + x[1] >= x[2]:
  if x[1] >= x[2] - x[0]:
    print("Yes")
  else:
    print("No")

else:
  print("No")

Submission status: Wrong Answer

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

if x[0] + x[1] >= x[2]:
  if x[1] >= x[2]:
    print("Yes")
  else:
    print("No")

else:
  print("No")

Submission status: Wrong Answer

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

if x[0] + x[1] >= x[2]:
  if x[1] >= x[2]:
    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 or c > a + b:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

else:
  print('NO')

Submission status: Wrong Answer

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

else:
  print('NO')

Submission status: Wrong Answer

Solution code:
x,y,z = map(int,input().split())
if x > z :
  print('No')
elif x+y < z:
  print('No')
elif x <= z and x+y >= z:
  print('Yes')

Submission status: Wrong Answer

Solution code:
x,y,z = map(int,input().split())
if x > z :
  print('No')
elif x+y < z:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
x,y,z = map(int,input().split())
if x > z :
  print('No')
elif x+y < x:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
if a < b:
  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:
cat, hatena, x = map(int, input().split()) 
kakutei_cat = cat - x
if kakutei_cat >= hatena:
  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())

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,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())

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

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(["NO","YES"][x-a<=b])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

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

# print(A)
# print(B)
# print(X)

# print((A < X) and (A + B >= X))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

# 猫の絶対数 => a
# 犬の絶対数 => d = b-x
# いてほしい猫の数 => x
# 不明な犬猫の数 => b-a

unknown = x - a  # 犬かねこかわからない数

# いるべき総数よりも猫が多い　またはいてほしい猫の数よりも現在の猫の数のほうが多い
if a+b < x or b-a < 0 or unknown < 0:
  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("NO")
elif A+B<X:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
import sys

def input():
    return sys.stdin.readline().rstrip()

if __name__ == "__main__":
    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 <= B-A and A-B < 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-A:
  print("YES")
elif X-A <0:
  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 X-A <= B-A and A-B < X else "NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a = s[0]
b = s[1]
x = s[2]
if a + b < x:
    print("NO")
else:
    print("YES")

Submission status: Wrong Answer

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

a = s[0]
b = s[1]
x = s[2]
if b < x - a:
    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 > X else 'NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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 + 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 B - A <= 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('No')
else:
  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:
def abc():
    a, b, x = map(int, input().rstrip().split())
    print('YES' if min(a, b) <= x <= max(a, b) else 'NO')


abc()

Submission status: Wrong Answer

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


abc()

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('No' if x < a or a + b < x else 'Yes')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
list = input().split()
A = int(list[0])
B = int(list[1])
X = int(list[2])

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

Submission status: Wrong Answer

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

def solve(A, B, X):
  if A + B < X:
    print("NO")
  elif 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<=b else "NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Wrong Answer

Solution code:
0

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 b>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")

elif a>x:
    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("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,c = map(int,input().split(" "))
flag = False
for n in range(0,b+1) :
	a += n
	if a == c :
		flag = True
		break
	if a > c :
		flag = False
		break
print("YES"if flag else "NO")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split(" "))
flag = False
for n in range(0,b+1) :
	a += n
	if a == c :
		flag = True
	if a > c :
		flag = False
print("YES"if flag else "NO")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split(" "))
flag = False
for n in range(0,b+1) :
	a += n
	if a == c :
		flag = True
print("YES"if flag else "NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys


def input():
    return sys.stdin.readline()[:-1]

# N = int(input())
# A = [int(x) for x in input().split()]
# a, b, c = map(int, input().split())
# name1 = str(input())
# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


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

Submission status: Wrong Answer

Solution code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    a,b, x = f()
    if x>=a and x<= a+b:
        print('Yes')
    else:
        print('No')

solve()

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 = "Yes"
if X < A or A+B < X:
    ans = "No"

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, x = (int(_) for _ in input().split())  

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

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

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

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

if a<=x and x<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())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if X <= A+B:
    if X >= A:
        print("Yes")
        exit()
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 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:
# coding: utf-8

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

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

Submission status: Wrong Answer

Solution code:
#094
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 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 a<=c<=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:
l = [int(i) for i in input().split()]
print(['YES', 'NO'][(l[0]+l[1]>=l[2])&(l[0]<=l[2])])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from collections import Counter
from functools import reduce
import fractions
import math
import statistics
import sys
import time
sys.setrecursionlimit(10**7)
INF = 10 ** 18
MOD = 10 ** 9 + 7
def LI(): return [int(x) for x in sys.stdin.readline().split()]  # LIST INT
def LF(): return [float(x) for x in sys.stdin.readline().split()]  # LIST FLOAT
def LS(): return sys.stdin.readline().split()  # LIST STRING
def MI(): return map(int, sys.stdin.readline().split())  # MAP INT
def II(): return int(sys.stdin.readline())  # INPUT INT
def IS(): return input()  # INPUT STRING
def P(x): return print(x)
def C(x): return Counter(x)
def GCD_LIST(numbers):  # greatest common divisor
    return reduce(fractions.gcd, numbers)
def LCM_LIST(numbers):  # least common multiple
    return reduce(LCM, numbers)
def LCM(m, n):
    return (m * n // fractions.gcd(m, n))


a, b, x = MI()
print("YES") if a <= x <= b else print("NO")