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

print(ans)

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

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

Submission status: Accepted

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


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

if a<=x 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 (X - A) > B:
    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:
# ABC094a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

a, b, x = map(int, input().split())
print('YNEOS'[not(0 <= x-a <= b)::2])

Submission status: Accepted

Solution code:
#094a
A,B,X = map(int, input().split())
    
#猫と犬が合わせて A+B 匹います． このうち A 匹は猫であることがわかっていますが，残りの B匹は猫と犬のどちらであるかわかっていません．
#この A+B匹の中に，猫がちょうど X 匹いるということはありうるかどうか判定してください．

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

Submission status: Accepted

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

if x <= a+b and x >= a:
    ans = 'YES'
else:
    ans = 'NO'

print(ans)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys, math, itertools, heapq, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans = count = 0

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 + B < X:
  print('NO')
elif A > X or X - A > B :
  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:
def examA():
    A, B, X = LI()
    ans = "NO"
    if A<=X<=A+B:
        ans = "YES"
    print(ans)

import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

Submission status: Accepted

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 permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
from bisect import bisect

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()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A, B, X = MAP()

if 0 <= 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 = list(map(int, input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

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

cat = A-1
for i in range(B+1):
    cat += 1
    if cat == X:
        print("YES")
        exit()
        
print("NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()

def main():
    a,b,x=map(int,input().split())
    if a > x:
        print('NO')
        return
    if x-a > b:
        print('NO')
        return
    print('YES')

main()

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
#                         author:  kagemeka 
#                         created: 2019-11-07 11:52:43(JST)
import sys
# import collections
# import math
# import string
# import bisect
# import re
# import itertools
# import statistics
# import functools
# import operator

def main():
    a, b, x = (int(i) for i in sys.stdin.readline().split())
    print('YES' if x >= a and b >= x - a else 'NO') 


if __name__ == "__main__":
    # execute only if run as a script
    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:
#Cats and Dogs
A, B, X = map(int, input().split())
if A <= X <= A+B:
    print("YES")
else:
    print("NO")

Submission status: Accepted

Solution code:
# ABC 094: A – Cats and Dogs
a, b, x = [int(s) for s in input().split()]
print('YES' if a + b >= x and a <= x else 'NO')

Submission status: Accepted

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

if b+a >= x >= a:
    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:
# -*- coding: utf-8 -*-
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())

d = c - a

ans = 'NO'

if d >= 0 and b >= d :
	ans = 'YES'
	
print(ans)

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 = 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())
print("NYOE S"[a+b>=x>=a::2])

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

Submission status: Accepted

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

flg = True
if a+b < x:
    flg = False
elif a > x:
    flg = False
else:
    pass

print('YES' if flg 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 and 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+B < 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 = (int(x) for x in input().split())

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

Submission status: Accepted

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

if __name__ == '__main__':
    print(main())

Submission status: Accepted

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

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

Submission status: 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())
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 <= 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 >= 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, C = map(int, input().split())
if A == C or (A < C and B >= C - A):
  print('YES')
else:
  print('NO')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

    else:
        print("YES")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
print('YES' if a <= c <= 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, 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:
    print('NO')
elif 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 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 a<=x else '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:
def slove():
    import sys
    input = sys.stdin.readline
    a, b, x = list(map(int, input().rstrip('\n').split()))
    if a <= x <= a + b:
        print("YES")
    else:
        print("NO")


if __name__ == '__main__':
    slove()

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 - Cats and Dogs
https://atcoder.jp/contests/abc094/tasks/abc094_a

猫と犬が合わせて A + B 匹います． このうち A 匹は猫であることがわかっていますが，
残りの B 匹は猫と犬のどちらであるかわかっていません．

この A + B 匹の中に，猫がちょうど X 匹いるということはありうるかどうか判定してください．

>>> main(3, 5, 4)
YES
>>> main(2, 2, 6)
NO
>>> main(5, 3, 2)
NO'''


def main(a, b, x):
    if a <= x <= a + b:
        print('YES')
    else:
        print('NO')


if __name__ == "__main__":
    a, b, x = map(int, input().split(' '))
    main(a, b, x)

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
input = sys.stdin.readline

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

Submission status: 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 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 = [int(x) for x in input().split()]
if A>X or (X-A>B):
  print("NO")
  exit()
print("YES")

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

Submission status: Accepted

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

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

aa094()

Submission status: Accepted

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

Submission status: Accepted

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

if x < a:
  print('NO')
  exit()

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

print('YES')

Submission status: 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 0 <= x - a < b else "NO")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# A - Cats and Dogs
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+b>=x>=a else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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

(a, b, x) = [int(i) for i in input().rstrip().split(" ")]
ans = "YES" if a <= x <= (a + b) else "NO"
print(ans)

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

Submission status: Accepted

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    

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

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

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

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


def yes():
    if a > x:
        return False
    return a + b >= x


print('YES' if yes() is True else 'NO')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# ABC094 A - Cats and Dogs
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]=list(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())
print(["NO","YES"][A<=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:
a,b,x = map(int,input().split())
print("YES" if 0 <= x-a and x-a <= b else "NO")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=list(input().split())
a=int(s[0])
b=int(s[1])
x=int(s[2])
if 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 and B >= X-A:
  print('YES')
  exit()
print('NO')

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:


def main():


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





if __name__== "__main__":
    main()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [int(_) for _ in input().split()]
if len(a) == 3 and 1 <= a[0] <= 100 and 1 <= a[1] <= 100 and 1 <= a[2] <= 200:
    if a[0] <= a[2] <= a[0] + a[1]:
        print('YES')
    else:
        print('NO')
else:
    print('hoge!')

Submission status: Accepted

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