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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# /usr/bin/python
# -*- coding: utf-8 -*-
import sys


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def cats_and_dogs(A: int, B: int, X: int) -> bool:
    return A <= X and X <= A+B


if __name__ == "__main__":
    A, B, X = map(int, input().split())
    yes = cats_and_dogs(A, B, X)
    print('YES' if yes else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
A, B, X = map(int, input().split())
print(['NO', 'YES'][A <= X and X <= A + B])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ri = lambda: int(input())
rl = lambda: list(map(int,input().split()))
rr = lambda N: [ri() for _ in range(N)]
YN = lambda b: print('YES') if b else print('NO')
yn = lambda b: print('Yes') if b else print('No')
OE = lambda x: print('Odd') if x%2 else print('Even')
INF = 10**18

a,b,x=rl()

YN(a<= x and x <= a+b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
A, B, X = map(int, input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc094/tasks/abc094_a
a, b, x = [int(x) for x in input().split()]
print("YES") if (x - a >= 0) and (x - a <= b) else print("NO")

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc094/tasks/abc094_a

import itertools
import collections
import bisect

def main():
    A, B, X = map(int, input().split())
    rest = X - A
    if rest < 0 or rest > B:
        print("NO")
    else:
        print("YES")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys

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


if __name__ == '__main__':
  main()

Submission status: Accepted

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

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

Submission status: Accepted

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

ans = A <= X and (A + B) >= X

print("YES" if ans else "NO")
print()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
a,b,x = [int(x) for x in stdin.readline().rstrip().split()]
 
if a>x:
  print('NO')
elif a<x and (x-a)>b:
  print('NO')
else:
  print('YES')

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

Solution code:
# encoding:utf-8
import copy
import numpy as np
import random


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

if a<= x <= a+b:
    ans = True
else:
    ans = False

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
int_a, int_b, int_x = map(int, input().split())


if int_a <= int_x <= int_a + int_b:
    print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,x=[int(i) for i in input().split()]
if a+b>=x:
    if a>x:
        print("NO")
    else:
        print("YES")
else:
    print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

#
# solve !!
#
solve(lines)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,x=map(int,input().split());print('NYOE S'[~b<a-x<1::2])

Submission status: Accepted

Solution code:
n,m,p=map(int,input().split())
if p<=n+m and n<=p:
  print("YES")
else:
  print("NO")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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


main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
"""AtCoder"""

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

def main():
    na = list(map(int, input().split()))
    A, B, X = na[0], na[1], na[2]

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
# 猫確定，わからない，いなければならない猫の数
A,B,X = map(int,input().split())

total = A + B
if X < A or total < X :# 猫がX匹より少ない or 全体よりX匹猫いる  
    print("NO")
else:
    print("YES")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def main():
  a, b, x = map(int, input().split())
  
  if a > x:
    print('NO')
    return
  
  if a + b < x:
    print('NO')
    return
  
  print('YES')
  return 
  
if __name__ == '__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
print(['NO','YES'][(a+b>=c)*(a<=c)])

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print('NO' if X - A < 0 or X - A > B else 'YES')

Submission status: Accepted

Solution code:
# Aは猫, Bはどっちかわからん
A, B, X = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
cats,animals,expect_cats = [int(i) for i in input().split()]

if (cats > expect_cats) :
	print("NO")
elif (cats+animals < expect_cats) :
	print("NO")
else :
	print("YES")

Submission status: Accepted

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

need_neko_in_b=X-A

print('YES' if B >= need_neko_in_b and not A>X else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

if (b[0] > b[2]):
	print("NO")
elif(b[0]+b[1])>b[2]:
	print("YES")
else:
	print("NO")

Submission status: Accepted

Solution code:
# Cats and Dogs
print((lambda x: 'YES' if 0 <= x[2]-x[0] <= x[1] else 'NO')(list(map(int, input().split()))))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
flg = False
if a+b<c:
    flg=True
if a>c:
    flg=True
print("YNEOS"[flg::2])

Submission status: Accepted

Solution code:
a,b,x=[int(i) for i in input().split()]
print('YES' if a<=x<=a+b else 'NO')

Submission status: Accepted

Solution code:
a,b,x=[int(i) for i in input().split()]
if a<=x<=a+b:
  print('YES')
else:     
  print('NO')

Submission status: Accepted

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

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

Submission status: Accepted

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

D = A + B

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,x = [int(i) for i in input().split()]
print('YES') if x>=a and a+b>=x else print('NO')

Submission status: Accepted

Solution code:
a,b,x=map(int,input().split());print(["NO","YES"][0<=x-a<=b])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,x=(int(i) for i in input().split(' '))
print("YES" if a<=x and x<=a+b else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b, x = [int(_) for _ in input().split()]
if a > x or a + b < x:
    print('NO')
else:
    print('YES')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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