qyliang/CodeNanoFix huggingface dataset:
Buggy code:
A,B,X = map(int,input().split())
if B >= X-A:
    print("YES")
else:
    print("NO")

Fixed code:
A,B,X = map(int,input().split())
if B >= X-A and X-A>=0:
    print("YES")
else:
    print("NO")
Buggy code:
a,b,x = map(int,input().split())
print("YES" if a+b >= x else "NO")

Fixed code:
a,b,x = map(int,input().split())
print('YES' if a<=x<=a+b else 'NO')
Buggy code:
A,B,X = map(int, input().split())

if A>X: print("NO")

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

print("YES")


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

if A>X: print("NO")
else:
  if (X-A) > B: print("NO")
  else: print("YES")
Buggy code:
a,b,x = map(int,input().split())
print('YES' if x <= a+b else 'NO')

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

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

Fixed code:
a,b,x = map(int,input().split())
if x > a + b or x < a:
    print('NO')
else:
    print('YES')
Buggy code:
a = list(map(int,input().split()))
if a[2] - a[0] <= a[1]:
  print("YES")
else:
  print("NO")

Fixed 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")
Buggy code:
A,B,X=map(int,input().split())
if A>X:
    print("NO")
elif A<=X=<A+B:
    print("YES")
else :
    print("NO")

Fixed code:
A,B,X=map(int,input().split())
if A>X:
    print("NO")
elif A<=X<=A+B:
    print("YES")
else :
    print("NO")
Buggy 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()


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


if __name__ == '__main__':
    main()
Buggy code:
a, b, x = [int(i) for i in input().split()]

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


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

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

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

Fixed code:
#94a
a,b,x=map(int,input().split())

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


Fixed code:
a, b, x = map(int, input().split())
if a+b < x or a > x:
  print("NO")
else:
  print("YES")
Buggy code:
def A():
    A, B, X = [int(a) for a in input().split()]
    possible = all([
        A <= X,
        X <= A + B
    ])
    if possible:
        print('YES')
    else:
        print('NO')

Fixed code:
A, B, X = [int(a) for a in input().split()]
possible = all([
    A <= X,
    X <= A + B
])
if possible:
    print('YES')
else:
    print('NO')
Buggy code:
a, b, x=map(int, input().split())

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

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

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

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

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

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

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

Fixed code:
a,b,x=map(int, input().split())
if a <= x and x <= a+b:
  print('YES')
else:
  print('NO')
Buggy code:
A, B, X = map(int, input().split())

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


Fixed code:
A, B, X = map(int, input().split())
if A <= X <= A+B:
    print("YES")
else:
    print("NO")
Buggy code:
a,b,x = map(int,input().split())
if a>x:
  print("NO")
elif a+b>x:
  print("NO")
else:
  print("YES")

Fixed code:
a,b,x = map(int,input().split())
if a>x:
  print("NO")
elif a+b<x:
  print("NO")
else:
  print("YES")
Buggy code:
A, B, X = map(int, input().split())

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


Fixed code:
A, B, X = map(int, input().split())
if X > A + B or X < A:
    print("NO")
else:
    print("YES")
Buggy code:
a, b, x = map(int, input().split())
if b >= x - a:
  print('YES')
else:
  print('NO')

Fixed code:
a, b, x = map(int, input().split())
if a > x:
    print('NO')
elif b >= x - a:
    print('YES')
else:
    print('NO')
Buggy code:
def li():
    return list(map(int, input().split()))


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


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


A, B, X = mi()

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


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


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


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


A, B, X = mi()

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


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

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

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

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

Fixed code:
a,b,x = map(int, input().split())
if a <= x <= a + b:
  print("YES")
else:
  print("NO")
Buggy code:
A,B,X=map(int,input().split())
if A+B<=X:
    if a<=X:
        print('YES')
    else:
        print('NO')
else:
    print('NO')

Fixed code:
A,B,X=map(int,input().split())
if A+B>=X:
    if A<=X:
        print('YES')
    else:
        print('NO')
else:
    print('NO')
Buggy code:
a,b,x = map(int, input().split())

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

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

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

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

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

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


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

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

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

Fixed code:
a,b,c = map(int,input().split())
if c>= a:
  if c-a<=b:
    print('YES')
  else:
    print('NO')
else :
  print('NO')
Buggy code:
n,m,p=map(int,input().split())
if p<=n+m:
  print("YES")
else:
  print("NO")

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

Fixed code:
a,b,x =map(int,input().split())
if(x <= a+b and x >= a):
    print("YES")
else:
    print("NO")
Buggy code:
A, B, X = map(int, input().split())
if B - A >= X:
    print('YES')
else:
    print('NO')

Fixed code:
A, B, X = map(int, input().split())
if X < A:
    print('NO')
elif B >= X - A:
    print('YES')
else:
    print('NO')
Buggy code:
A,B,X = map(int,input().split())

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


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

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



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

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

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

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

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

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


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

if a <= x and x - a <= b:
  print('YES')
else:
  print('NO')
Buggy code:
A,B,X=list(map(int, input().split()))

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

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

if A+B>=X and A<=X:
    print('YES')
else:
    print('NO')
Buggy code:
a,b,x = map(int,input().split())
if a>x:
  print("NO")
elif b<=x-a:
  print("YES")
else:
  print("NO")

Fixed code:
a,b,x = map(int,input().split())
if a>x:
  print("NO")
elif b>=x-a:
  print("YES")
else:
  print("NO")
Buggy code:
    a, b, x = map(int, input().split())
     
    if a <= x <= a + b:
        print("YES")
    else:
        print("NO")

Fixed code:
a, b, x = map(int, input().split())
if a <= x and x <= (a + b):
  print('YES')
else:
  print('NO')
Buggy code:
#!/usr/bin/python

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

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

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

if neko_inu < d:
    print("NO")

print("YES")


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

Fixed code:
a, b, x = map(int, input().split())
if a <= x <= a+b:
    ans = "YES"
else:
    ans = "NO"
print(ans)
Buggy code:
A,B,X=map(int,input().split())

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

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

if X-A>B or A>X:
  print('NO')
else:
  print('YES')
Buggy code:
a,b,x=map(int,input().split())
print(("NO","YES")[a+b>=x and x<=a+b])

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

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

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

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

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

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

if a>x:
    print('NO')
elif a+b<x:
    print('NO')
else:
    print('YES')
Buggy code:
A, B, X = map(int, raw_input().split())

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


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

if X >= A and X <= A + B:
    print('YES')
else:
    print('NO')
Buggy code:
l = input().split()
if l[0] <= l[2] and l[2] <= (l[0] + l[1]):
    print("YES")
else:
    print("NO")

Fixed code:
l = input().split()
if int(l[0]) <= int(l[2])  <= (int(l[0]) + int(l[1])):
    print("YES")
else:
    print("NO")
Buggy code:
A,B,X=map(int,input().split())

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



Fixed code:
A,B,X=map(int,input().split())
if (X<A):
	print('NO')
elif (X==A):
	print('YES')
else:
	if (B>=(X-A)):
	    print('YES')
	else:
	    print('NO')
Buggy code:
a, b, x = map(int, input().split())
print("YES" if (a + b) >= x else "NO")

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

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

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

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


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

print('NO' if X - A < 0 or X - A > B else 'YES')
Buggy code:
a, b, x = map(int, input().split())

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

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

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


Fixed code:
a, b, x = input().split(' ')
a = int(a)
b = int(b)
x = int(x)

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

Fixed code:
a, b, x = map(int, input().split())
if a > x:
  print('NO')
elif a+b >= x:
  print('YES')
else:
  print('NO')
Buggy code:
A, B, X = map(int, input().split())
if A + B < X < A:  
  print("NO")
else:
  print("YES")

Fixed code:
A,B,X=map(int,input().split())
if X>=A and X<=A+B:
  print("YES")
else:
  print("NO")
Buggy code:
a,b,x=map(int,input().split())
print('NO' if b>=x or a>x else 'YES')

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


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


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

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

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

Fixed code:
a,b,c=map(int,input().split())
print("YES"if a+b>=c and a<=c else"NO")
Buggy code:
A, B, X = map(int, input().split())
print('YES' if A + B >= X else 'NO')


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

Fixed code:
A, B, X = map(int, input().split())
if X-A <= B and A <= X:
  print('YES')
else:
  print('NO')
Buggy code:
a,b,x = map(int, input().split())
if a+b >= x:
    print("YES")
else:
    print("NO")

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

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


Fixed code:
a,b,x = map(int,input().split())
if a<=x and x<=a+b:
    print("YES")
else:
    print("NO")
Buggy code:
from sys import stdin
A,B,X=[int(x) for x in stdin.readline().rstrip().split()]
if A+B >= X and A >= X:
    print("YES")
else:
    print("NO")

Fixed code:
from sys import stdin
A,B,X=[int(x) for x in stdin.readline().rstrip().split()]
if A+B >= X and A <= X:
    print("YES")
else:
    print("NO")
Buggy code:
a,b,c = list(map(int,input().split()))
if a + b >= c:
    print("YES")
else:
    print("NO")

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


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

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

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

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

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

Fixed code:
i = list(map(int, input().split()))
if(i[0] > i[2]):
	print("NO")
	exit()
if(i[0]+i[1]>=i[2]):
	print("YES")
else:
	print("NO")
Buggy code:
a,b,w = map(int,input().split())
print('YES' if a <= w <= a+b else:'NO')

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


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

print('YES' if a+b >= x and a <= x else 'NO')
Buggy code:
l = map(int, raw_input().split())
A, B, X = l[0], l[1], l[2]

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

Fixed code:
l = list(map(int, input().split()))
A, B, X = l[0], l[1], l[2]

if A <= X and A + B >= X:
    print('YES')
else:
    print('NO')
Buggy code:
a,b,c = map(int,input().split())
print("YES" if 0 <= a+b-c <= a else "NO")

Fixed code:
a,b,c = map(int,input().split())
print("YES" if 0 <= c - a <= b else "NO")
Buggy code:
from sys import stdin
a,b,x = [int(x) for x in stdin.readline().rstrip().split()]

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

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

Fixed code:
a,b,x = map(int, input().split())
if x-a<=b and a<=x: print('YES')
else: print('NO')
Buggy code:
A, B, X = [int(x) for x in input().split()]

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

Fixed code:
A, B, X = [int(x) for x in input().split()]
if A + B < X:
  print("NO")
elif A > X:
  print("NO")
else:
  print("YES")
Buggy code:
a,b,c=map(int,input().split())
print(["NO","YES"][c-a<0 or c-a>b])

Fixed code:
a,b,c=map(int,input().split())
print(["YES","NO"][c-a<0 or c-a>b])
Buggy code:
aa,b,x = map(int, input().split())
if a <= x and x <= a +b:
    print ('YES')
else:
    print('NO')

Fixed code:
a,b,x = map(int, input().split())
if a <= x and x <= a +b:
    print ('YES')
else:
    print('NO')
Buggy code:
a,b,x=map(int,input().split())
print(["NO","YES"][x-a<=b])

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

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

Fixed code:
a,b,x=map(int,input().split())
if a<=x<=a+b:
	print("YES")
else:
	print("NO")
Buggy code:
A, B, X = map(int, input().split())
if A+B < X:
    print("NO")
elif A < X:
    print("NO")
else:
    print("YES")


Fixed code:
A,B,X = map(int, input().split())
if A>X:
	print("NO")
elif A+B<X:
	print("NO")
else:
	print("YES")
Buggy code:
a,b,x=map(int,input().split())
print("YES" if a+b-x>=0 else "NO")

Fixed code:
a,b,x=map(int,input().split())
print("YES" if a+b-x>=0 and x>=a else "NO")
Buggy code:
A,B,X = map(int,input().split())
print('YES' if A+B>=X else 'NO')

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

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

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

a = s[0]
b = s[1]
x = s[2]
if a + b < x or a > x:
    print("NO")
else:
    print("YES")
Buggy code:
a,b,x = map(int,input().split())

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

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

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

Fixed code:
a, b, x = map(int, input().split())
if (0 <= x - a) and (x - a <= b) :
    print("YES")
else :
    print("NO")
Buggy code:
a,b,x = map(int,input().split())
print(["YES","NO"][a+b>=x>=a])

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


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


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


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

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

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

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


if __name__ == "__main__":
    test()


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


if __name__ == "__main__":
    test()
Buggy code:
A,B,X=map(int,input().split())

need_neko_in_b=X-A

print('YES' if B >= A else 'NO')

Fixed 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')
Buggy code:
a,b,x = list(map(int,input().split()))

if x>a: print("YES")
else: print("NO")

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

if x>=a and a+b>=x: print("YES")
else: print("NO")
Buggy code:
A,B,X = int(input().split())
if A < X and X < A+B:
    print("YES")
else:
    print("NO")

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

Fixed code:
A, B, X = map(int, input().split())
if A <= X and A + B >= X:
    print('YES')
else:
    print('NO')
Buggy code:
a,b,x=map(int,input().split())
print('YNeos'[x<a or x>a+b::2])

Fixed code:
a,b,x=map(int,input().split())
print('YNEOS'[x<a or x>a+b::2])
Buggy code:
a,b,x = map(int,input().split())
if a+b -x >= 0:
  print("YES")
else:
  print("NO")

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