qyliang/CodeNanoFix huggingface dataset:
Buggy code:
a, b, c, d = map(int,input().split())

if abs(a-b) <= d and abs(b-c) <= d:
  print("Yes")
else:
  print("No")

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

if abs(b - a) <= d and abs(c - b) <= d or abs(c - a) <= d:
    print('Yes')
else:
    print('No')
Buggy code:
A,B,C,D = map(int, input().split())

AB = abs(A-B)
BC = abs(B-C)
ans = 0

if AB <= D and BC <= D or AC <= D:
    ans = "Yes"
else:
        ans = "No"
        
print(ans)

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

AB = abs(A-B)
BC = abs(B-C)
AC = abs(A-C) 
ans = 0

if AB <= D and BC <= D or AC <= D:
    ans = "Yes"
else:
    ans = "No"
        
print(ans)
Buggy code:
a,b,c,d = map(int,input().split())
if abs(a-b) > d or abs(b-c)> d:
    print('No')
else:
    print('Yes')

Fixed code:
a,b,c,d = map(int,input().split())
if abs(a-b) > d or abs(b-c)> d :
    if abs (a-c) >d:
        print('No')
    else:
        print('Yes')
else:
    print('Yes')
Buggy code:
a,b,c,d=map(int,input().split())
if abs(b-a)<=d and abs(c-b) <=d:
    print('Yes')
else:
    print('No')
 

Fixed code:
a, b, c, d = map(int,input().split())
ans = "No"
if abs(b - a) <= d and abs(c - b) <= d:
        ans = "Yes"
if abs(c - a) <= d:
    ans = "Yes"
print(ans)
Buggy code:
a, b, c, d = map(int, input().split())
def check(x, y):
  return abs(x - y) <= d
if (check(a, b) and check(a, c)) or (check(a, b) and check(b, c)):
  print("Yes")
else: print("No")

Fixed code:
a, b, c, d = map(int, input().split())
def check(x, y):
  return abs(x - y) <= d
if (check(a, c)) or (check(a, b) and check(b, c)):
  print("Yes")
else: print("No")
Buggy code:
a,b,c,d = map(int,input().split(' '))
if abs(a - c) <= d or (abs(a - b) <= d and abs(a - c) <= d):
    print("Yes")
else:
    print("No")

Fixed code:
a,b,c,d = map(int,input().split())
if (abs(b - a) <= d and abs(b - c) <= d) or abs(a - c) <= d:
  print("Yes")
else:
  print("No")
Buggy code:
a,b,c,d=map(int,input().split())
if abs(a-b)<=d and abs(b-c)<=d:
  print("Yes")
else:
  print("No")

Fixed code:
def resolve():
	a,b,c,d=map(int,input().split())
	if abs(a-c)<=d:
		print('Yes')
	else:
		if abs(a-b)<=d and abs(b-c)<=d:
			print('Yes')
		else:
			print('No')
resolve()
Buggy code:
a, b, c, d = map(int, raw_input().split())
if abs(a - c) <= d or (abs(a - b) <= d and abs(b - c) <= d):
    print('Yes')
else:
    print('No')

Fixed code:
a,b,c,d = map(int,input().split())
if (abs(b-a) <= d and abs(c-b) <= d ) or abs(c-a) <=d:
  print("Yes")
else:
  print("No")
Buggy code:
import sys
tmp=input().split()
a=int(tmp[0])
b=int(tmp[1])
c=int(tmp[2])
d=int(tmp[3])
da=a-b
db=b-c
dc=c-a
if a-b<0:
    da=b-a
if b-c<0:
    db=c-b
if c-a<0:
    dc=a-c
if dc<=d or da<=d and db<d
    print('Yes')
    sys.exit()
print('No')


Fixed code:
import sys
tmp=input().split()
a=int(tmp[0])
b=int(tmp[1])
c=int(tmp[2])
d=int(tmp[3])
da=a-b
db=b-c
dc=c-a
if a-b<0:
    da=b-a
if b-c<0:
    db=c-b
if c-a<0:
    dc=a-c
if dc<=d or da<=d and db<=d:
    print('Yes')
    sys.exit()
print('No')
Buggy code:
a, b, c, d = [int(i) for i in input().split()]
print("Yes" if abs(a - b) <= d and abs(b - c) <= d else "No")


Fixed code:
a, b, c, d = [int(i) for i in input().split()]
print("Yes" if abs(a - c) <= d or (abs(a - b) <= d and abs(b - c) <= d) else "No")
Buggy code:
a, b, c, d = list(map(int, input().split()))

if abs(a - c) <= d or (abs(a - c) <= d and a <= b and b <= c) or (abs(a - c) <= d and a >= b and b >= c):
    print('Yes')
else:
    print('No')


Fixed code:
a,b,c,d=map(int,input().split())
if (d>=abs(a-b) and d>=abs(b-c)) or d>=abs(a-c):
    print('Yes')
else:
    print('No')
Buggy code:
a, b, c, d = map(int, input().split())
if abs(c-a) <= d or abs(c-b)+abs(b-a) <= d:
  print('Yes')
else:
  print('No')

Fixed code:
a, b, c, d = map(int, input().split())
if abs(a-c) <= d:
    print('Yes')
else:
    if abs(a-b) <= d:
        if abs(b-c) <= d:
            print('Yes')
        else:
            print('No')
    else:
        print('No')
Buggy code:
a,b,c,d = map(int,input().split())
if abs(a-b) <= d and abs(b-c) <= d:
    print('Yes')
else:
    print('No')

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

ans = ''

if abs(a - c) > d:
    if abs(a - b) <= d and abs(b - c) <= d:
        ans = 'Yes'
    else:
        ans = 'No'
else:
    ans = 'Yes'

print(ans)
Buggy code:
a, b, c, d = list(map(int, input().split()))

if abs(a - c) <= d or (abs(a - c) <= d and a <= b and b <= c):
    print('Yes')
else:
    print('No')


Fixed code:
a, b, c, d = map(int, input().split())
if (abs(c - b) <= d and abs(b - a) <= d) or abs(c - a) <= d:
    print('Yes')
else:
    print('No')
Buggy code:
a,b,c,d=map(int,input().split());print("NYoe s"[((abs(b-a)<=d and abs(c-b)<=d) or (c-a)<=d)::2])

Fixed code:
a,b,c,d=map(int,input().split());print("NYoe s"[((abs(b-a)<=d and abs(c-b)<=d) or abs(c-a)<=d)::2])
Buggy code:
a, s, d, f = map(int, input().split())
if abs(d - s) <= f and abs(s - a) <= f:
    print("Yes")
else:
    print("No")


Fixed code:
a, s, d, f = map(int, input().split())
if abs(d - s) <= f and abs(s - a) <= f or abs(d - a) <= f:
    print("Yes")
else:
    print("No")
Buggy code:
a,b,c,d = map(int, input().split())

print('Yes' if a - b < d and b - c < d else 'No')


Fixed code:
a,b,c,d = map(int,input().split())
print("Yes" if abs(a - b)<= d and abs(b - c)<= d or abs(a - c)<= d else "No")
Buggy code:
a,b,c,d = map(int,input().split())

if abs(a-c) =< d:
  print("Yes")
elif abs(a-b) =< d and abs(c-b) =< d:
  print("Yes")
else:
  print("No")

Fixed code:
a, b, c, d = map(int, input().split())
if((abs(a-b) <= d and abs(b-c) <=d) or abs(a-c) <= d):
    print('Yes')
else:
    print('No')
Buggy code:
l = input().split()
if abs(int(l[2]) - int(l[1])) > int(l[3]):
    print("Yes")
elif abs(int(l[0]) - int(l[1])) > int(l[3]) and abs(int(l[1]) - int(l[2])) > int(l[3]):
    print("Yes")
else:
    print("No")

Fixed code:
l = input().split()
if abs(int(l[2]) - int(l[0])) <= int(l[3]):
    print("Yes")
elif abs(int(l[0]) - int(l[1])) <= int(l[3]) and abs(int(l[1]) - int(l[2])) <= int(l[3]):
    print("Yes")
else:
    print("No")
Buggy code:
a,b,c,d=(map(int,input().split())
if abs(a-b)<=d:
         print("Yes")
elif abd(a-c)<=d and abs(b-c)<=d:
         print("Yes")
else:
         print("No")
         


Fixed code:
a,b,c,d = map(int,input().split())
if abs(a-c) <= d:
    print('Yes')
elif abs(a-b) <= d and abs(b-c) <= d:
    print('Yes')
else:
    print('No')
Buggy code:
a,b,c,d=map(int,input().split())
print("Yes" if abs(a-b)<=d or abs(a-c)<=d and abs(b-c)<=d else "No")

Fixed code:
a,b,c,d=map(int,input().split())
print("Yes" if abs(a-c)<=d or abs(a-b)<=d and abs(c-b)<=d else "No")
Buggy code:
def main():
    a,b,c,d = (int(x) for x in input().split())
    if abs(a-b)<=d or (abs(a-c)<=d and abs(b-c)<=d):
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()

Fixed code:
def main():
    a,b,c,d = (int(x) for x in input().split())
    if abs(a-c)<=d or (abs(a-b)<=d and abs(b-c)<=d):
        print('Yes')
    else:
        print('No')

if __name__ == '__main__':
    main()
Buggy code:
a,b,c,d=map(int,input().split())
ans=False
if abs(a-c)<=d:
  ans=True
if abs(a-b)<=d&&abs(b-c)<=d:
  ans=True
if ans:
  print("Yes")
else:
  print("No")

Fixed code:
a,b,c,d=map(int,input().split())
ans=False
if abs(a-c)<=d:
  ans=True
if abs(a-b)<=d and abs(b-c)<=d:
  ans=True
if ans:
  print("Yes")
else:
  print("No")
Buggy code:
a, b, c, d = map(int, input().split())
if abs(a - c) <= d:
  r = 'Yes'
elif abs(a - b) <= d and abs(b - c) <= d:
  r = 'Yes'
else:
  r = 'No'

print(int(r))

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

if abs(a - c) <= d :
    print('Yes')

elif abs(a - b) <= d and abs(b - c) <=d:
    print('Yes')

else :
    print('No')
Buggy code:
a, b, c, d = map(int, input().split())
if abs(a-b) + abs(b-c) <= d or abs(a-c) <= d:
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

Fixed code:
a, b, c, d = map(int, input().split())
if (abs(a-b) <= d  and abs(b-c) <= d) or abs(a-c) <= d:
    ans = 'Yes'
else:
    ans = 'No'

print(ans)
Buggy code:
import sys, re
from math import ceil, floor, sqrt, pi, factorial#, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left
from functools import reduce
input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_list(N): return [s_list() for _ in range(N)]
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7



def main():
    a, b, c, d = i_map()

    if abs(a-b) <= d and abs(b-c) <= d:
        Yes()
        exit()

    No()

if __name__ == '__main__':
    main()


Fixed code:
import sys, re
from math import ceil, floor, sqrt, pi, factorial#, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left
from functools import reduce
input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_list(N): return [s_list() for _ in range(N)]
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7



def main():
    a, b, c, d = i_map()

    if abs(a-b) <= d and abs(b-c) <= d:
        Yes()
        exit()

    if abs(a-c) <= d:
        Yes()
        exit()

    No()

if __name__ == '__main__':
    main()
Buggy code:
a,b,c,d = map(int, input().split())
print('YES' if abs(a-c)<=d or abs(a-b)<=d and abs(b-c)<=d else 'No')

Fixed code:
a,b,c,d = map(int, input().split())
print('Yes' if abs(a-c)<=d or abs(a-b)<=d and abs(b-c)<=d else 'No')
Buggy code:
ans='No'
a=list(map(int,input().split()))
if abs(a[0]-a[1]) < a[3] and abs(a[1]-a[2]) <a[3]:
    ans='Yes'
elif abs(a[0]-a[2])<a[3]:
    ans='Yes'
print(ans)

Fixed code:
ans='No'
a=list(map(int,input().split()))
if abs(a[0]-a[1]) <= a[3] and abs(a[1]-a[2]) <=a[3]:
    ans='Yes'
elif abs(a[0]-a[2])<=a[3]:
    ans='Yes'
print(ans)
Buggy code:
a, b, c, d = map(int, input().split())
print('Yes' if abs(a-c) <= d or abs(a-b) <= d and abs(a-c) <= d else 'No')

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

if abs(c - a) <= d:
    print("Yes")
else:
    if abs(c - b) <= d and abs(b-a) <= d:
        print("Yes")
    else:
        print("No")
Buggy code:
IN = list(map(int, input().split()))
if max([abs(IN[0]-IN[1]), abs(IN[0]-IN[1])]) <= IN[3]:
  print("Yes")
else:
  print("No")

Fixed code:
IN = list(map(int, input().split()))
if max([abs(IN[0]-IN[1]), abs(IN[2]-IN[1])]) <= IN[3] or abs(IN[0]-IN[2]) <= IN[3]:
  print("Yes")
else:
  print("No")
Buggy code:
a, b, c, d = list(map(int,input().split()))

if abs(a - c) <= d:
    print("Yse")
elif abs(a - b) <= d and abs(b - c) <= d:
    print("Yes")
else:
    print("No")


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

if abs(a - c) <= d:
  print ('Yes')
  
elif abs(a - b) <= d and abs(b - c) <= d:
  print ('Yes')
else:
  print ('No')
Buggy code:
a, b, c, d = map(int, input().split())

if (abs(a - b) <= d) & (abs(b - c) <= d):
    print("Yes")
else:
    print("No")

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

if (abs(a - c) <= d):
    print("Yes")
elif (abs(a - b) <= d) & (abs(b - c) <= d):
        print("Yes")
else:
        print("No")
Buggy code:
a,b,c,d = map(int,input().split())
if a-b <= d and b-c <= d:
  print("Yes")
else:
  print("No")

Fixed code:
a,b,c,d = map(int,input().split())
if abs(a-c) <= d:
  print("Yes")
elif abs(a-b) <= d and abs(b-c) <= d:
  print("Yes")
else:
  print("No")
Buggy code:
a, b, c, d = [int(m) for m in input().split(" ")]

print("Yes" if abs(a-b) <= d and abs(b-c) <= d else "No")

Fixed code:
a, b, c, d = [int(m) for m in input().split(" ")]

if abs(a-b) <= d and abs(b-c) <= d:
	print("Yes")
elif abs(a-c) <= d:
	print("Yes")
else:
	print("No")
Buggy code:
a,b,c,d=map(int,input().split())
if abs(a-b) and abs(b-c) <=d:
  print("Yes")
else:
  print("No")

Fixed code:
a, b, c, d = map(int, input().split())
print("Yes" if abs(c - a) <= d or (abs(b - a) <= d and abs(c - b) <= d) else "No")
Buggy code:
a,b,c,d = map(int,input().split())
l1 = abs(a-b)
l2 = abs(a-c)
print("Yes" if l2 <= d or (l1 <= d and l2 <= d) else "No")


Fixed code:
a,b,c,d = map(int,input().split())
l1 = abs(a-b)
l2 = abs(a-c)
l3 = abs(b-c)
print("Yes" if l2 <= d or (l1 <= d and l3 <= d) else "No")
Buggy code:
a,b,c,d = map(int,input().split())

d1 = a-b; d2 = c-b

if d1 < 0:
    d1 = -d1
if d2 < 0:
    d2 = -d2

if d1 <= d and d2 <= d:
    print('Yes')
else:
    print('No')

Fixed code:
a,b,c,d = map(int,input().split())
d1 = a-b; d2 = c-b; d3 = a-c

if d1 < 0:
    d1 = -d1
if d2 < 0:
    d2 = -d2 
if d3 < 0:
    d3 = -d3

if d1 <= d and d2 <= d or d3 <= d:
    print('Yes')
else:
    print('No')
Buggy code:

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

if abs(a-b) <= d and abs(b-c) <= d:
    print("Yes")
else:
    print("No")

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

if(abs(a-c) <= d): 
    print("Yes")
elif(a <= b and b <= c and (abs(a-b) <= d and abs(c-b) <= d)):
    print("Yes")
elif(a >= b and b >= c and (abs(a-b) <= d and abs(c-b) <= d)):
    print("Yes")
else:
    print("No")
Buggy code:
a, b, c, d = map(int, input().split())

print(abs(a-b))
if (abs(a-b) <= d and abs(b-c) <= d) or abs(a-c) <= d:
    print("Yes")
else:
    print("No")

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

if abs(a - c) <= d:
    print('Yes')
elif abs(a - b) <= d and abs(c - b) <= d:
    print('Yes')
else:
    print('No')
Buggy code:
a, b, c, d = map( int, input().split() )
if ( b - a <= d and c - b <= d ) or c - a <= d :
   print( "Yes" )
else : 
   print( "No" )

Fixed code:
a, b, c, d = map(int, input().split())
if abs(a - c) <= d or (abs(a - b) <= d and abs(b - c) < d):
    print("Yes")
else:
    print("No")
Buggy code:
# -*- coding: utf-8 -*-

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

if abs(a-b) <= d and abs(b-c) <= d:
    print("Yes")
else:
    print("No")


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

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

if (abs(a-b) <= d and abs(b-c) <= d) or abs(a-c) <= d:
    print("Yes")
else:
    print("No")
Buggy code:
a,b,c,d=map(int, input().split())
if c-a<=d:
  print('Yes')
elif b-a<=d and c-b<=d:
  print('Yes')
else:
  print('No')

Fixed code:
a,b,c,d = map(int,input().split())
if abs(c-a)<= d:
    print('Yes')
elif abs(b-a)<=d and abs(c-b)<=d:
    print('Yes')
else:
    print('No')
Buggy code:
list01 = list(input().split())
a = int(list01[0])
b = int(list01[1])
c = int(list01[2])
d = int(list01[3])

if (c-a<=d):
    print("Yes")
elif (b-a<=d and c-b<=d):
    print("Yes")
else:
    print("No")

Fixed code:
list01 = list(input().split())
a = int(list01[0])
b = int(list01[1])
c = int(list01[2])
d = int(list01[3])

if (abs(c-a)<=d):
    print("Yes")
elif (abs(b-a)<=d and abs(c-b)<=d):
    print("Yes")
else:
    print("No")
Buggy code:
a,b,c,d=map(int,input().split())
print("Yes" if abs(a-c)<=d or abs(a-b)<=d and abs(a-c)<=d else "No")

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

if abs(a-c) <= d or ( abs(a-b) <= d and abs(b-c) <= d ):
    print("Yes")
else:
    print("No")
Buggy code:
a,b,c,d = map(int, input().split())

ans = "No"
if (abs(a-b) <= d and abs(b-c)) <= d or abs(a-c) <= d:
    ans = "Yes"
    
print(ans)

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

ans = "No"
if (abs(a-b) <= d and abs(b-c) <= d) or abs(a-c) <= d:
    ans = "Yes"
    
print(ans)
Buggy code:
a,b,c,d = map(int,input().split())
if abs(a-b) <= d and abs(b-c) <= d and abs(a-c) <= d:
        print("Yes")
else:
        print("No")


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

if abs(c - a) <= d or (abs(a - b) <= d and abs(c - b) <= d):
    print("Yes")
else:
    print("No")
Buggy code:
A = list(map(int, input().split()))

if max(abs(A[0]-A[1]),abs(A[1]-A[2])) <= d or abs(A[0]-A[2]) <= d:
  print('Yes')
  exit()
print('No')


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

if max(abs(A[0]-A[1]),abs(A[1]-A[2])) <= A[3] or abs(A[0]-A[2]) <= A[3]:
  print('Yes')
  exit()
print('No')
Buggy code:
a, b, c, d = map(int,input().split())
if (abs(a - b) <= d or abs(b - a) <= d) and (abs(b - c) <= d or abs(c - b) <= d):
        print('Yes')
else:print('No')


Fixed code:

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

if abs(a-c) <= d :
	print("Yes")
elif abs(a-b) <= d and abs(b-c) <= d :
	print("Yes")
else :
	print("No")
Buggy code:
a, b, c, d = map(int,input().split())

if abs(a - b) < d or abs(b - a) < d:
    if abs(b - c) < d or abs(c - b) < d:
        print('Yes')
    else:print('No')
else:print('No')

Fixed code:
a, b, c, d = map(int,input().split())
if (abs(a - b) <= d or abs(b - a) <= d) and (abs(b - c) <= d or abs(c - b) <= d) or (abs(c - a) <= d or abs(a - c) <= d):
        print('Yes')
else:print('No')
Buggy code:
a,b,c,d=map(int,input().split());print("Yes") if abs(a-b)<=d and abs(c-b)<=d else print("No")

Fixed code:
a,b,c,d=map(int,input().split());print("Yes") if (abs(b-a)<=d and abs(c-b)<=d) or (abs(a-c)<=d) else print("No")
Buggy code:
# coding: utf-8
# Your code here!
a, b, c, d = map(int, input().split())

if abs(a - b) <= d and abs(b - c) <= d:
    print('Yes')
else:
    print('No')

Fixed code:
# coding: utf-8
# Your code here!
a, b, c, d = map(int, input().split())

if abs(a - c) <= d or abs(a - b) <= d and abs(b - c) <= d:
    print('Yes')
else:
    print('No')
Buggy code:
a, b, c, d = map(int, input().split())
if abs(a-b) <= d and abs(b-c) <= d:
    print("Yes")
else:
    print("No")

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

if abs(a-c) <= d:
    print("Yes")
elif abs(a-b) <= d and abs(b-c) <= d:
    print("Yes")
else:
    print("No")
Buggy code:
a=input().strip().split(" ")

b=[int(i) for i in a]

if(((abs(b[0]-b[1])<b[3]) and (abs(b[2]-b[1])<b[3])) or abs(b[0]-b[2])<b[3] ):
    print("Yes")
else:
    print("No")


Fixed code:
a=input().strip().split(" ")

b=[int(i) for i in a]

if(((abs(b[0]-b[1])<=b[3]) and (abs(b[2]-b[1])<=b[3])) or abs(b[0]-b[2])<=b[3] ):
    print("Yes")
else:
    print("No")
Buggy code:
a,b,c,d = map(int,input().split())
if (abs(b-a) <= d and abs(c-b) <= d) 
	print('Yes')
else if (abs(c-a)<= d)
	print('Yes')
else
	print('No')

Fixed code:
a,b,c,d = map(int,input().split())
if abs(b-a) <= d and abs(c-b) <= d:
	print('Yes')
elif abs(c-a)<= d:
	print('Yes')
else:
	print('No')
Buggy code:
a, b, c, d = map(int,input().split())
if abs(a - b) =< d or abs(b - c) =< d:
  print("Yes")
else:
  print("No")


Fixed code:
a, b, c, d = map(int, input(). split())
if abs(a - b) <= d and abs(b - c) <= d or abs(a - c) <= d:
  print('Yes')
else:
  print('No')
Buggy code:
a,b,c,x = map(int, input().split())
print("Yes" if (abs(a-b)<=x and abs(c-b))<=x or abs(a-c) <= x else "No" )

Fixed code:
a,b,c,x = map(int, input().split())
print("Yes" if abs(a-b)<=x and abs(c-b)<=x or abs(a-c) <= x else "No" )
Buggy code:
a, b, c, d = map(int, input().split())
ab = abs(a - b)
bc = abs(b - c)
if ab <= d and bc <= d:
  print('Yes')
else:
  print('No')

Fixed code:
a, b, c, d = map(int, input().split())
ab = abs(a - b)
bc = abs(b - c)
ac = abs(a - c)
if ab <= d and bc <= d:
  print('Yes')
elif ac <= d:
  print('Yes')
else:
  print('No')
Buggy code:
a,b,c,d = map(int,input().split())

if abs(a-c) <= d:
  print('Yes')
elif (abs(a-b) <= d) && (abs(b-c) <= d):
  print('Yes')
else:
  print('No')


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

if abs(a-c) <= d:
  print('Yes')
elif (abs(a-b) <= d) and (abs(b-c) <= d):
  print('Yes')
else:
  print('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

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    a = [int(i) for i in input().split()]
    
    if abs(a[0]-a[2]) <a[3] or (abs(a[0] -a[1]) <a[3] and abs(a[1]-a[2]) <a[3]):
        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

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

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

    if abs(a[0]-a[2]) <=a[3] or (abs(a[0] -a[1]) <=a[3] and abs(a[1]-a[2]) <=a[3]):
        print("Yes")
    else:
        print("No")
Buggy code:
a,b,c,d =[int(x) for x in input().split()]
print("No" if c-b>d or b-a>d else "Yes")

Fixed code:
a,b,c,d =[int(x) for x in input().split()]
print("No" if abs(c-a)>d and (abs(c-b)>d or abs(b-a)>d) else "Yes")
Buggy code:
a,b,c,d = map(int, input().split())
if abs(a - b) <= d and abs(c - b) <= d:
    print('Yes')
else:
    print('No')

Fixed code:
a,b,c,d=map(int,input().split())
print('Yes') if ((abs(b-a) <= d and abs(c-b) <= d) or abs(c-a) <= d) else print('No')
Buggy code:
a, b, c, d = map(int, input().split())

print(a,b,c,d)

if abs(a - c) <= d:
    print('Yes')
elif abs(a - b) <= d and abs(b - c) <= d:
    print('Yes')
else:
    print('No')

Fixed code:
a, b, c, d = map(int, input().split())
if abs(c-a) <= d:
    print('Yes')
elif abs(b-a) <= d and abs(c-b) <= d:
    print('Yes')
else:
    print('No')
Buggy code:
# Colorful Transceivers
a, b, c, d = map(int, input().split())
if abs(a-b) <= d and abs(b-c) <= d:
    print('Yes')
else:
    print('No')


Fixed code:
# Colorful Transceivers
a, b, c, d = map(int, input().split())
if (abs(a-b) <= d and abs(b-c) <= d) or abs(a-c) <= d:
    print('Yes')
else:
    print('No')
Buggy code:
from math import *

a,b,c,d=map(int,input().split())
if fabs(a-b)<=d and fabs(a-c)<=d:
	print("Yes")
elif fabs(a-b)<=d and fabs(b-c)<=d:
	print("Yes")
elif fabs(a-c)<=d and fabs(b-c)<=d:
	print("Yes")
else:
	print("No")

Fixed code:
from math import *

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

if fabs(a-b)<=d and fabs(b-c)<=d:
	print("Yes")
elif fabs(a-c)<=d:
	print("Yes")
else:
	print("No")
Buggy code:
a, b, c, d = map(int,input().split())
if abs(a-b) <= d and abs(b-c) <= d:
    print("Yes")
else:
    print("No")

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

if (abs(b - a) <= d and abs(c - b) <= d) or abs(a - c) <= d:
    print("Yes")
else:
    print("No")
Buggy code:
a, b, c, d = map(int, input().split())
e = abs(c - a)
f = abs(c - b)
print('Yes' if e<=d and f<=d else 'No')

Fixed code:
a, b, c, d = map(int, input().split())
e = abs(b-a)
f = abs(c-b)
if (abs(c-a)<=d) or (e<=d and f<=d):
  print('Yes')
else:
  print('No')
Buggy code:
a,b,c,d = map(int,input().split())

if a - b <= d and b - c <= d or a - c <= d:
    print"Yes"
else:
    print"No"


Fixed code:
a,b,c,d=map(int, input().split())
print('Yes' if abs(c-a) <= d or (abs(b-a) <= d and abs(c-b) <= d) else 'No')
Buggy code:
a,b,c,d = map(int,input().split())
if a - b <= d and b - c <= d:
    print("Yes")
else:
    print("No")


Fixed code:
a,b,c,d = map(int,input().split())
if abs(c-a) <= d or (abs(a-b)<=d and abs(b-c) <= d):
    print('Yes')
else:
    print('No')
Buggy code:
a, b, c, d = list(map(int, input().split()))

if abs(a-b) <= d and abs(b-c) <= d:
    print('Yes')
else:
    print('No')


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

if abs(a-b) <= d and abs(b-c) <= d:
    print('Yes')
elif abs(a-c) <= d:
    print('Yes')
else:
    print('No')