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:
def ABC_94_A():
    A,B,X = map(int, input().split())
    
    if A+B>=X and A<=X:
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':

    ABC_94_A()

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 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("No")
elif (A+B>=X):
    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:
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LS(): return list(sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))

A,B,X = LI()
if A<=X and A + B >= X:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LS(): return list(sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))

A,B,X = LI()
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 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+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 <= b else 'NO')

Submission status: Wrong Answer

Solution code:

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

print("Yes" if (X-A)>=0 and (A+B-X)>=0 else "No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a >= x:
    if x - a <= b:
        print('Yes')
        exit()
print('No')

Submission status: Wrong Answer

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

if a <= x:
    if x - a <= b:
        print('Yes')
        exit()
print('No')

Submission status: Wrong Answer

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

if a <= x:
    if x - a < b:
        print('Yes')
        exit()
print('No')

Submission status: Wrong Answer

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

if (a <= x):
    if x-a<b:
        print('Yes')
        exit()
print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop

import collections

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

Submission status: Wrong Answer

Solution code:
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop

import collections

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

Submission status: Wrong Answer

Solution code:
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop

import collections

a,b,x = map(int,input().split())
ab = a+b
least = x - a
if least<0:
    print("No")
    sys.exit()
if b>=least:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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 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):
   print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

else:
  print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    t = list(map(int, input().split()))
    for i in range(t[1]):
        tmp = i + t[0]
        if tmp == t[2]:
            print('Yes')
            exit()
    print('No')

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    t = list(map(int, input().split()))
    if t[0] + t[1] > t[2]:
        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<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 < b else 'NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
line = input()
A, B ,X = [int(u) for u in line.split()]
def func(a,b,x):
    return print("YES") if x<a+b else print("NO")
func(A,B,X)

Submission status: Wrong Answer

Solution code:
cat, unknown, guess = map(int, input().split())
if guess > cat:
    if cat + unknown < guess:
        print('NO')
    else:
        print('YES')
else:
    if guess + unknown > cat:
        print('NO')
    else:
        print('YES')

Submission status: Wrong Answer

Solution code:
cat, unknown, guess = map(int, input().split())
if guess > cat:
    if cat + unknown < guess:
        print('NO')
    else:
        print('YES')
else:
    print('NO')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

dc = x - a

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

dc = x - a

if dc < 0 :
  print('No')
elif dc <= b:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if __name__ == "__main__":
    main()

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 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 b+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>=0 else "NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
A, B, X = map(int, input().split())
# print(A, B, X)
if X - A >= 0 and B >= X - A:
    print('YES')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = [int(i) for i in input().split()]

    if a[0] <= a[1] and a[1] <=a[0] * a[2]:
        print("YES")
    else:
        print("NO")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math


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

print("Yes" if a<=c and c<=a+b else "No" )

Submission status: Wrong Answer

Solution code:
import sys
sys.setrecursionlimit(10**7)
INTMAX = 9223372036854775807
INTMIN = -9223372036854775808
DVSR = 1000000007
def POW(x, y): return pow(x, y, DVSR)
def INV(x, d=DVSR): return pow(x, d - 2, d)
def DIV(x, y, d=DVSR): return (x * INV(y, d)) % d
def LI(): return [int(x) for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()
def II(): return int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B,X=map(int,input().split());print("YNEOS"[A+B<=X::2])

Submission status: Wrong Answer

Solution code:
A,B,X=map(int,input().split());print("YNEOS"[A+B<X::2])

Submission status: Wrong Answer

Solution code:
A,B,X=map(int,input().split());print("YNeos"[A+B<X::2])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

ans = 'Yes' if A <= X and X <= A + B else 'No'
print(ans)

Submission status: Wrong Answer

Solution code:
import sys
import os

OK = 'APPROVED'
NG = 'DENIED'


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    A, B, X = list(map(int, sys.stdin.buffer.readline().split()))

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys
import os

OK = 'APPROVED'
NG = 'DENIED'


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    A, B, X = list(map(int, sys.stdin.buffer.readline().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())
print("YES") if a<=x 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 X<A:
    print('No')
elif X>A+B:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
total_sum, cats, animal = map(int,input().split())
if total_sum < cats:
  print("NO")
elif total_sum - cats - animal < 0:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
cat, cd, t = map(int, input().split())
f = False
if cat < t and cd > 0 and cat + cd >= t:
     f = True
print("YES") if f 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 = map(int,input().split())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = ['a','b','c']
s = list(input())
s.sort()
print('Yes' if a == s else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, x = [int(i) for i in 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 or x<=a+b else 'NO')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, x = map(int, input().split())
if x<=a or a+b<=x:
    print("YES")
else:
    print("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 = map(int, raw_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, raw_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,raw_input().split())
if a+(x-a) ==x or 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 <= X <=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, c  =map(int, input().split())
if a + b >= c and a <= c:
  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:
import math
import itertools
#n = int(input())
#n, d = list(input().split())
A, B, X= list(map(int, input().split()))

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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