qyliang/CodeNanoFix huggingface dataset:
Buggy code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if b-a > k:
  print(':(')
  exit()
elif c-a > k:
  print(':(')
  exit()
elif d-a > k:
  print(':(')
  exit()
elif e-a > k:
  print(':(')
  exit()
else
  print('Yay!')
  exit()

Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if b-a > k:
  print(':(')
  exit()
elif c-a > k:
  print(':(')
  exit()
elif d-a > k:
  print(':(')
  exit()
elif e-a > k:
  print(':(')
  exit()
else:
  print('Yay!')
Buggy code:
a,b,c,d,e = [int(input()) for i in range(5)]
k = int(input())
if a-e > k:
  print("Yay!")
else:
  print(":)")

Fixed code:
a,b,c,d,e = [int(input()) for i in range(5)]
k = int(input())
if e-a > k:
  print(":(")
else:
  print("Yay!")
Buggy code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())

if d-a<=k
  print('Yay!')
else:
  print(':(')

Fixed code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
 
if e-a<=k:
  print('Yay!')
else:
  print(':(')
Buggy code:
inp = []
for i in range(6):
    inp.append(insert(input()))
k = inp[4] - inp[0]
if k > inp[5]:
    print(':(')
else:
    print('Yay!')

Fixed code:
inp = []
for i in range(6):
    inp.append(int(input()))
k = inp[4] - inp[0]
if k > inp[5]:
    print(':(')
else:
    print('Yay!')
Buggy code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
ans1 = ("Yay!")
ans2 = (":(")
if b - a <= k and c- b <= k and d - c <= k and e - d <= k:
    print(ans1)
else:
    print(ans2)

Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
ans1 = ("Yay!")
ans2 = (":(")
if e - a <= k:
    print(ans1)
else:
    print(ans2)
Buggy code:
n = []
for i in range(5):
    n.append(int(input()))
k = int(input())
if max(n) - min(n) < k:
    print("Yay!")
else:
    print(":()")


Fixed code:
n = []
for i in range(5):
    n.append(int(input()))
k = int(input())
if max(n) - min(n) <= k:
    print("Yay!")
else:
    print(":(")
Buggy code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

difmax = e - a
if difmax < k:
  print(':(')
else:
  print('Yay!')

Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

difmax = e - a
if difmax > k:
  print(':(')
else:
  print('Yay!')
Buggy code:
a = [int(input())for i in range(5)]
k = int(input())
print( "Yay!" if max(a)-min(a) > k else ":(" )

Fixed code:
a = [int(input())for i in range(5)]
k = int(input())
print( "Yay!" if max(a)-min(a) <= k else ":(" )
Buggy code:
k = int(input())
list = []
for i in range(5):
    a = int(input())
    list.append(a)

direct = False
for i in range(5):
    for j in range(5):
        if abs(list[i]-list[j]) > k:
            direct = True
    if direct:
            break
if direct:
    print('Yay!')
else:
    print(':(')


Fixed code:
list = []
for i in range(5):
    a = int(input())
    list.append(a)
k = int(input())

direct = True
for i in range(5):
    for j in range(5):
        if abs(list[i]-list[j]) > k:
            direct = False
if direct:
    print('Yay!')
else:
    print(':(')
Buggy code:
a=[int(input()) for i in range(6)]
if a[4]-a[0]>=a[5]:
  print'Yay!'
  else print ':('

Fixed code:
a=[int(input()) for i in range(6)]
b=a[4]-a[0]
if a[5]>=b:
    print('Yay!')
else:
    print(':(')
Buggy code:
a=input()
b=input()
c=input()
d=input()
e=input()
k=input()
array=[a,b,c,d,e]
flag=True

for i in range(5):
  for j in range(5):
    if array[i]-array[j] >= k:
      flag=False
      print(":(")
      break
  if not flag:
    break
      
if flag:
  print("Yay!")

Fixed code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
array=[a,b,c,d,e]
flag=True
 
for i in range(5):
  for j in range(5):
    if array[i]-array[j] > k:
      flag=False
      print(":(")
      break
  if not flag:
    break
      
if flag:
  print("Yay!")
Buggy code:
a = [ int(input()) for _ in range(5) ]
k = int(input())

t = True
for i in range(5):
  for j in range(i+1,5):
    t = abs(a[i]-a[j]) <= k
    if not t:
      break
      
print( "Yay!" if t else ":(" )

Fixed code:
a = [ int(input()) for _ in range(5) ]
k = int(input())
 
t = True
for i in range(5):
  for j in range(i+1,5):
    t = abs(a[i]-a[j]) <= k
    if not t:
      break
  if not t:
    break
      
print( "Yay!" if t else ":(" )
Buggy code:
*a, = map(int, open(0).read().split())
k = a.pop()
#print(a,k)
c = 'Yay!'
for i in a:
    for j in a:
        if j-i > k:
            c = ''
            break
print(c)
    
        

Fixed code:
*a, = map(int, open(0).read().split())
k = a.pop()
#print(a,k)
c = 'Yay!'
for i in a:
    for j in a:
        if j-i > k:
            c = ':('
            break
print(c)
Buggy code:
*Pos, K = [int(input()) for _ in range(6)]
print('Yay!' if Pos[4] - pos[0] <= K else ':(')

Fixed code:
*Pos, K = [int(input()) for _ in range(6)]
print('Yay!' if Pos[4] - Pos[0] <= K else ':(')
Buggy code:
# -*- coding: utf-8 -*-
"""
Created on Sat Apr  6 21:22:08 2019

@author: Tabe
"""

pos = list()
for i in range(5):
    pos.append(int(input()))

k = int(input())
hh = False

for index, val in  enumerate(pos):
    if hh == True:
        break;
    
    if index == 4:
        print("Yay!")
        break
    
    for i in  range(5):
        if abs(pos[index] - pos[i]) < k:
            pass
        else:
            print(":(")
            hh = True
            break
    else:
        print(":(")
        break




Fixed code:
# -*- coding: utf-8 -*-
"""
Created on Sat Apr  6 21:22:08 2019

@author: Tabe
"""

pos = list()
for i in range(5):
    pos.append(int(input()))

k = int(input())
hh = False

for index, val in  enumerate(pos):
    if hh == True:
        break;
    
    if index == 4:
        print("Yay!")
        break
    
    for i in  range(5):
        if abs(pos[index] - pos[i]) <= k:
            pass
        else:
            print(":(")
            hh = True
            break
Buggy code:
antennas = [int(input()) for i in range(5)]

max_dist = int(input())

coords = {}

for i in range(len(antennas)):
  coords[i] = antennas[i]
flag = 1
for i in range():
  for j in range(i + 1, 5):
    if abs(coords[i] - coords[j]) > max_dist:
      print(':(')
      flag = 0
      break
  if flag = 0:
    break
if flag = 1:
  print('Yay!')
      
  

Fixed code:
antennas = [int(input()) for i in range(5)]

max_dist = int(input())

coords = {}

for i in range(len(antennas)):
  coords[i] = antennas[i]
flag = 1
for i in range(5):
  for j in range(i + 1, 5):
    if abs(coords[i] - coords[j]) > max_dist:
      print(':(')
      flag = 0
      break
  if flag == 0:
    break
if flag == 1:
  print('Yay!')
Buggy code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if e-a<=k:
	print('Yay!')
else:
	print(':)')


Fixed code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if e-a<=k:
	print('Yay!')
else:
	print(':(')
Buggy code:
anntena = []
for i in range(5):
  anntena.append(int(input()))
k = int(input())

if (anntena[-1] - anntena[0]) <= k:
  print('Yey!')
else:
  print(':(')


Fixed code:
anntena = []
for i in range(5):
  anntena.append(int(input()))
k = int(input())

if (anntena[-1] - anntena[0]) <= k:
  print('Yay!')
else:
  print(':(')
Buggy code:
#[a,b,c,d,e,k] = map(int,list(input().split()))
l = []
for i in range(6):
    l.append(int(input()))

if l[4]-l[0]>l[5] :
    print("Yay!")
else:
    print(":(")



Fixed code:
#[a,b,c,d,e,k] = map(int,list(input().split()))
l = []
for i in range(6):
    l.append(int(input()))

if l[4]-l[0]<=l[5] :
    print("Yay!")
else:
    print(":(")
Buggy code:
antennas = []
for _ in range(5):
  a = int(input())
  antennas.append(a)
k = int(input())
cannot_communicate_pair_exists = False
for i in range(len(antennas)):
  for q in range(len(antennas)):
    if i == q:
      continue
    if abs(antennas(i)-antennas(q)) > k:
      cannot_communicate_pair_exists = True
      break
  if cannot_communicate_pair_exists:
    break
if cannot_communicate_pair_exists:
  print(":(")
else:
  print("Yay!")

Fixed code:
antennas = []
for _ in range(5):
  a = int(input())
  antennas.append(a)
k = int(input())
cannot_communicate_pair_exists = False
for i in range(len(antennas)):
  for q in range(len(antennas)):
    if i == q:
      continue
    if abs(antennas[i]-antennas[q]) > k:
      cannot_communicate_pair_exists = True
      break
  if cannot_communicate_pair_exists:
    break
if cannot_communicate_pair_exists:
  print(":(")
else:
  print("Yay!")
Buggy code:
a=input()
b=input()
c=input()
d=input()
e=input()
k=input()
if e-a<k:
  print('Yay!')
  else
  print(':(')


Fixed code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if b-a<=k and c-a<=k and d-a<=k and e-a<=k and c-b<=k and d-b<=k and e-b<=k and d-c<=k and e-c<=k and e-d<=k:
    print('Yay!')
else:
    print(':(')
Buggy code:
a=input()
b=input()
c=input()
d=input()
e=input()
k=input()
if e-a>k:
  print('Yay!')
  else
  print(':(')

Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
if e - a > k:
  print(':(')
else:
  print('Yay!')
Buggy code:
stdin = []
for x in range(6):
    stdin.append(int(input()))
print(stdin)
a,b,c,d,e,k = (x for x in stdin)
ans = "Yay!"

for x in range(len(stdin)- 1):
    if x != len(stdin) - 2:
        for y in range(x+1,len(stdin)-1):
            if abs(stdin[x]-stdin[y]) > k:
                ans = ":("
print(ans)

Fixed code:
stdin = []
for x in range(6):
    stdin.append(int(input()))
a,b,c,d,e,k = (x for x in stdin)
ans = "Yay!"

for x in range(len(stdin)- 1):
    if x != len(stdin) - 2:
        for y in range(x+1,len(stdin)-1):
            if abs(stdin[x]-stdin[y]) > k:
                ans = ":("
print(ans)
Buggy code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
 
if (k - (b - a)) * (k - (c - a)) * (k - (d - a)) * (k - (e - a)) * (k - (c - b)) * (k - (d - b)) * (k - (e - b)) * (k - (d - c)) * (k - (e - c)) * (k - (e -d)) >= 0:
  print("Yay!")
else:
  print(":(")

Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if (k - (b - a)) >= 0 and (k - (c - a)) >= 0 and  (k - (d - a)) >= 0 and (k - (e - a)) >= 0 and (k - (c - b)) >= 0 and (k - (d - b)) >= 0 and (k - (e - b)) >= 0 and (k - (d - c)) >= 0 and (k - (e - c)) >= 0 and (k - (e -d) ) >= 0:
  print("Yay!")
else:
  print(":(")
Buggy code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())

if k>b-a:
  print(":(")
elif k> c-a:
  print(":(")
elif k> d-a:
  print(":(")
elif k> e-a:
  print(":(")
elif k> c-b:
  print(":(")
elif k> d-b:
  print(":(")
elif k> e-b:
  print(":(")
elif k> d-c:
  print(":(")
elif k> e-c:
  print(":(")
elif k> e-d:
  print(":(")
else:
  print("Yay!")

Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

distance = e - a
if distance > k :
    print(':(')
else :
    print('Yay!')
Buggy code:
a=[int(input()) for i in range(5)]
k=int(input())
for i in range(n-4):
  for j in range(1,n):
    if abs(a[i]-a[j])>k:
      print(':(')
      exit()
print('Yay')

Fixed code:
a=[int(input()) for i in range(5)]
k=int(input())
for i in range(4):
  for j in range(1,5):
    if abs(a[i]-a[j])>k:
      print(':(')
      exit()
print('Yay!')
Buggy code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if e - a <= k:
    print("Yay")
else:
    print(":(")

Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if e - a <= k:
    print("Yay!")
else:
    print(":(")
Buggy code:
import sys

*x, k = map(int, sys.stdin.read().split())
x.sort()

def main():
    ans = 'yay!' if x[-1] - x[0] <= k else ':('
    print(ans)

if __name__ ==  '__main__':
    main()

Fixed code:
import sys

*x, k = map(int, sys.stdin.read().split())

def main():
    x.sort()
    return 'Yay!' if x[-1] - x[0] <= k else ':(' 

if __name__ == '__main__':
    ans = main()
    print(ans)
Buggy code:
a,b,c,d,e,k=[int(input()) for _ in range(6)]
print('Yey!' if abs(a-e) <= k else ':(')

Fixed code:
a,b,c,d,e,k=[int(input()) for _ in range(6)]
print('Yay!' if abs(a-e) <= k else ':(')
Buggy code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())

a_b=abs(a-b)
a_c=abs(a-c)
a_d=abs(a-d)
a_e=abs(a-e)

b_c=abs(b-c)
b_d=abs(b-d)
b_e=abs(b-e)

c_d=abs(c-d)
c_e=abs(c-e)

d_e=abs(d-e)
print(k)
print(a_e)

if a_e > k:
    print(":(")
else:
    print("Yey!")


Fixed code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())

a_b=abs(a-b)
a_c=abs(a-c)
a_d=abs(a-d)
a_e=abs(a-e)

b_c=abs(b-c)
b_d=abs(b-d)
b_e=abs(b-e)

c_d=abs(c-d)
c_e=abs(c-e)

d_e=abs(d-e)
if a_e > k:
    print(":(")
else:
    print("Yay!")
Buggy code:
    a = int(input())
    b = int(input())
    c = int(input())
    d = int(input())
    e = int(input())
    k = int(input())
     
    if e - a <= k:
        print('Yay!')
    else:
        print(':(')

Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())

dis = int(input())

if(e-a <= dis):
	print("Yay!")
else:
	print(":(")
Buggy code:
arr=[]
for i in range(5):
    arr.append(int(input()))
k = int(input())

print(arr,k)
i=0
singi=0
if k >= arr[4] - arr[0]:
    print('Yay!')
else:
    print(':(')

Fixed code:
arr=[]
for i in range(5):
    arr.append(int(input()))
k = int(input())

i=0
singi=0
if k >= arr[4] - arr[0]:
    print('Yay!')
else:
    print(':(')
Buggy code:
[a,b,c,d,e,k] = [int(input()) for i in range(6)]
if a-e > k:
    print(":(")
else:
    print("Yay!")

Fixed code:
[a,b,c,d,e,k] = [int(input()) for i in range(6)]
if e-a > k:
    print(":(")
else:
    print("Yay!")
Buggy code:
antena = [int(input()) for i in range(5)]
K = int(input())
if antena[0] - antena[4] > K:
  print(':(')
else:
  print('Yay!')

Fixed code:
antena = [int(input()) for i in range(5)]
K = int(input())
if (antena[4] - antena[0]) > K:
  print(':(')
else:
  print('Yay!')
Buggy code:
data = []
for i in range(5):
    data.append(int(input()))
k = int(input())
data.sort()
if data[4] - data[0] > k:
    print(":(")
else:
    print("Yey!")

Fixed code:
data = []
for i in range(5):
    data.append(int(input()))
k = int(input())
data.sort()
if data[4] - data[0] > k:
    print(":(")
else:
    print("Yay!")
Buggy code:
antennas = []

for antenna in range(5):
    antennas.append(antenna)

k = int(input())
    
if ((antennas[4] - antennas[0]) <= k):
    print("Yay!")
else:
    print(":(")
  

Fixed code:
antennas = []

for _ in range(5):
    antenna = int(input())
    antennas.append(antenna)

k = int(input())
    
if ((antennas[4] - antennas[0]) <= k):
    print("Yay!")
else:
    print(":(")
Buggy code:
N = 6 #the number of the input data
a = [[int(i) for i in input().split()] for j in range(N)]

if a[N-2] - a[0] <= k:
    print("Yay!")
else:
    print(":(")

Fixed code:
N = 6 #the number of the input data
a = [[int(i) for i in input().split()] for j in range(N)]

if a[N-2][0] - a[0][0] <= a[N-1][0]:
    print("Yay!")
else:
    print(":(")
Buggy code:
import sys
a = [int(input()) for _ in range(6)]

for i in a[1::-1]:
    if i-a[0] > a[-1]:
        print(':(')
        sys.exit()
print('Yay!')


Fixed code:
import sys
a = [int(input()) for _ in range(6)]

for i in a[1:-1]:
    if i-a[0] > a[-1]:
        print(':(')
        sys.exit()
print('Yay!')
Buggy code:
lis = []

for i in range(5):
    lis.append(int(input()))

NUM = int(input())

count = 0
correct = 0
for i in range(5):
    for k in range(i + 1, 5):
        if lis[k] - lis[i] < NUM or lis[i] - lis[k] < NUM:
            correct += 1
        count += 1

if count == correct:
    print('Yay!')
else:
    print(':(')


Fixed code:
lis = []

for i in range(5):
    lis.append(int(input()))

NUM = int(input())

count = 0
correct = 0
for i in range(5):
    for k in range(i + 1, 5):
        if lis[k] - lis[i] <= NUM and lis[i] - lis[k] <= NUM:
            correct += 1
        count += 1

if count == correct:
    print('Yay!')
else:
    print(':(')
Buggy code:
lst = []
for _ in range(5):
    lst.append(int(input()))
k = int(input())
if abs(lst[0] - lst[-1]):
    print('Yay!')
else:
    print(':(')

Fixed code:
lst = []
for _ in range(5):
    lst.append(int(input()))
k = int(input())
if abs(lst[0] - lst[-1]) <= k:
    print('Yay!')
else:
    print(':(')
Buggy code:
N = 5
lst = []
for e in range(N):
    lst.append(int(input()))
k = int(input())
flag = True
for i,a in enumerate(lst):
    if not flag:
        break
    l = lst[i:]
    for b in l:
        if abs(a-b) > k:
            flag = False
            break
if flag:
    print('yay!')
else:
    print(':(')

Fixed code:
N = 5
lst = []
for e in range(N):
    lst.append(int(input()))
k = int(input())
flag = True
for i,a in enumerate(lst):
    if not flag:
        break
    l = lst[i:]
    for b in l:
        if abs(a-b) > k:
            flag = False
            break
if flag:
    print('Yay!')
else:
    print(':(')
Buggy code:
a,b,c,d,e,k = [int(input()) for _ in range(6)]

result = "Yey!" if e-a<=k else ":("
print(result)


Fixed code:
a,b,c,d,e,k = [int(input()) for _ in range(6)]

result = "Yay!" if e-a<=k else ":("
print(result)
Buggy code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if e - a <= k:
    print("Yey!")
else:
    print(":(")
          


Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if e-a<=k:
    print("Yay!")
else:
    print(":(")
Buggy code:
a = input()
b = input()
c = input()
d = input()
e = input()
k = input()

if int(b)-int(a)>int(k):
	print(":(")
elif int(c)-int(b)>int(k):
	print(":(")
elif int(d)-int(c)>int(k):
	print(":(")
elif int(e)-int(d)>int(k):
	print(":(")
else:
	print("Yay!")

Fixed code:

a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if e-a>k:
    print(":(")
else:
    print("Yay!")
Buggy code:
# -*- coding: utf-8 -*-

a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

print("Yay!" if e - a <= k else ":()")


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

a, b, c, d, e, k = int(input()), int(input()), int(input()), int(input()), int(input()), int(input())

if e - a <= k:
    print("Yay!")
else:
    print(":(")
Buggy code:
s = [int(input()) for i in range(5)]
k = int(input())
count =	0

for i in s:
    for j in s:
        if (i-j)**2 > k**2:
            print(":(")
            count+=1
	    break

if count == 0:
    print("Yay!")



Fixed code:
s = [int(input()) for i in range(5)]
k = int(input())
count = 0

for i in s:
    for j in s:
        if (i-j)**2 > k**2:
            print(":(")
            count+=1
            break
    if count == 1:
        break

if count == 0:
    print("Yay!")
Buggy code:
a=[]
for i in range(0,6):
  a.append(int(input()))
ans=0
for j in range(1,5):
  if a[j]-a[j-1]>a[5]:
    ans+=1
    
if ans==0:
  print("Yay!")
else:
  print(":(")

Fixed code:
a=[]
b=[]

for i in range(0,6):
  a.append(int(input()))
ans=0
for j in range(0,4):
  for k in range(j+1,5):
    if a[k]-a[j]>a[5]:
      ans+=1
    
if ans==0:
  print("Yay!")
else:
  print(":(")
Buggy code:
a=input()
b=input()
c=input()
d=input()
e=input()
k=input()
if e-a>k:
    print(":(")
else:
    print("Yay!")

Fixed code:
a=int(input())
b=input()
c=input()
d=input()
e=int(input())
k=int(input())
if e-a>k:
    print(":(")
else:
    print("Yay!")
Buggy code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if b-a<k:
  if c-a<k:
    if d-a<k:
      if e-a<k:
        print("Yay!")
      else:
        print(":(")
        break
    else:
      print(":(")
      break
  else:
    print(":(")
    break
else:
  print(":(")
  break
 

Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if e-a<=k:
  print("Yay!")
else:
  print(":(")
Buggy code:
a = []
for i in range(5):
  a.append(int(input()))
a.sort()
j = int(input)
k = a[4] - a[0]
if k <= j:
  print("Yay!")
else:
  print(":(")

Fixed code:
a = []
for i in range(5):
  a.append(int(input()))
a.sort()
j = int(input())
k = a[4] - a[0]
if k <= j:
  print("Yay!")
else:
  print(":(")
Buggy code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
ant_list=[a,b,c,d,e]
print(ant_list)
ant_list.sort()
if (ant_list[-1]-ant_list[0])<=k:
    print("Yay!")
else:
    print(":(")

Fixed code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
ant_list=[a,b,c,d,e]
ant_list.sort()
if (ant_list[-1]-ant_list[0])<=k:
    print("Yay!")
else:
    print(":(")
Buggy code:
i = [input() for i in range(6)]

i0 = int(i[0])

i1 = int(i[1])

i2 = int(i[2])

i3 = int(i[3])

i4 = int(i[4])

i5 = int(i[5])



if  i4 - i0 >> i5:
    print(":(")

else:
    print("Yay!")

Fixed code:
i = [input() for i in range(6)]

i0 = int(i[0])

i1 = int(i[1])

i2 = int(i[2])

i3 = int(i[3])

i4 = int(i[4])

i5 = int(i[5])



if  i4 - i0 > i5:
    print(":(")

else:
    print("Yay!")
Buggy code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

longth = [a, b, c, d, e]

for i in range(4):
    if longth[i] - longth[i+1] < k or longth[i] - longth[i+1] > -k:
        continue
    else:
        print(':(')
        break
else:
    print('Yay!')

Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

longth = [a, b, c, d, e]

for i in range(4):
    if longth[i+1] - longth[0] <= k:
        continue
    else:
        print(':(')
        break
else:
    print('Yay!')
Buggy code:
l=[int(input()) for i in range(5)]
k=int(input())
A=True
for i in range(4):
  a=l[i+1]-l[i]
  if a>k:
    A=False
    break
if A:
  print('Yay!')
else:
  print(':(')
    

Fixed code:
l=[int(input()) for i in range(5)]
k=int(input())
A=True
for i in range(4):
  for j in range(i+1,5):
    a=l[j]-l[i]
    if a>k:
      A=False
      break
if A:
  print('Yay!')
else:
  print(':(')
Buggy code:
a[0]=int(input())
a[1]=int(input())
a[2]=int(input())
a[3]=int(input())
a[4]=int(input())
k=int(input())
for i in range(5):
  for j in range(i+1,5):
    if a[j]-a[i]>k :
      print(":(")
      sys.exit()
print("Yay!")

Fixed code:
import sys
a=[0]*5
a[0]=int(input())
a[1]=int(input())
a[2]=int(input())
a[3]=int(input())
a[4]=int(input())
k=int(input())
for i in range(5):
  for j in range(i+1,5):
    if a[j]-a[i]>k :
      print(":(")
      sys.exit()
print("Yay!")
Buggy code:
a, b, c, d, e ,k = [int(input()) for i in range(6)]

if e - a <= k:
    print('Yay')
else:
    print(':(')

Fixed code:
a, b, c, d, e ,k = [int(input()) for i in range(6)]

if e - a <= k:
    print('Yay!')
else:
    print(':(')
Buggy code:
Li = list(int(input()) for _ in range(6))
F =[1  for i in range(4) for j in range(i,4) if abs(Li[j]-Li[i]) < Li[5]]
print ("Yay!" if len(F)==20 else ":(")

Fixed code:
Li = list(int(input()) for _ in range(6))
F =[1  for i in range(4) for j in range(i+1,5) if abs(Li[j]-Li[i]) <= Li[5]]
print ("Yay!" if len(F)==10 else ":(")
Buggy code:
m_list = list()
for k in range(5):
    m = int(input())
    m_list.append(m)
num = int(input())

x_list = list()
count = 0
for i in range(0, len(m_list)-1):
    for j in range(i+1, len(m_list)):
        x_list.append(m_list[j] - m_list[i])

print(x_list)
for a in range(len(x_list)):
    if x_list[a] >= num:
        count += 1

if count >= 1:
    print(":(")
else:
    print("Yay!")

Fixed code:
m_list = list()
for k in range(5):
    m = int(input())
    m_list.append(m)
num = int(input())

x_list = list()
count = 0
for i in range(0, len(m_list)-1):
    for j in range(i+1, len(m_list)):
        x_list.append(m_list[j] - m_list[i])

for a in range(len(x_list)):
    if x_list[a] > num:
        count += 1

if count >= 1:
    print(":(")
else:
    print("Yay!")