qyliang/CodeNanoFix huggingface dataset:
Buggy code:
a,b,c,d,e = [int(input()) for _ in range(4)]
k = int(input())

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

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

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

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

i = abs(e-a)

if i < k:
    print("Yay!")

else:
    print(":(")


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


i = e-a

if i <= 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())

if e - a > k or d -a > k or e - b > k or e - c > k or c - a > k or d - b > k or b - a > k or c - b > k or d - c > k or e - d > k:
  print(':(')
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:
a, b, c, d, e = [int(input()) for _ in range(5)]
k = int(input())

min_distance = min([e - d, d - c, c - b, b - a])
if min_distance > k:
    print(":(")
else:
    print("Yay!")


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

max_distance = e - a
if max_distance > 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())


i = abs(e-a)

if i < 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())
print("Yay!" if e-a<=k else ":(")
Buggy code:
num = list()
for ii in range(5):
    num.append(int(input()))
dist = int(input())

if num[-1] - num[0] <= dist:
    print('Yah!')
else:
    print(':(')

Fixed code:
num = list()
for ii in range(5):
    num.append(int(input()))
dist = int(input())

if num[-1] - num[0] <= dist:
    print('Yay!')
else:
    print(':(')
Buggy code:
ant = [int(input()) for i in range(5)]
k = int(input())
print('Yay!') if ant[-1]-ant[0] else (':(')

Fixed code:
ant = [int(input()) for i in range(5)]
k = int(input())
print('Yay!') if ant[-1]-ant[0]<= k else print(':(')
Buggy code:
a,b,c,d,e,k=[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:
a = int(input().split())
b = int(input().split())
c = int(input().split())
d = int(input().split())
e = int(input().split())
k = int(input().split())
if (e-a)>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:
l=[int(input()) for i in range(5)]
k=int(input())

if (max(l)-min(l)) > 0:
    print(":(")
else:
    print("Yay!")

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

if (max(l)-min(l)) > 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 min(b-a,c-b,d-c,e-d) > 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:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
if b - a <= k and c - b <= k and d - c <= k and e - d <= 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:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())

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

Fixed code:
if __name__ == "__main__":
    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:
for i in range(6):
  A[i]=int(input())
  
isOK=True
for i in range(5):
  for j in range(5):
    if(abs(A[i]-A[j]) > A[6]):
      isOK=False
      
if(isOK):
  print("Yay!")
else:
  print(":(")

Fixed code:
A=[0]*6
for i in range(6):
  A[i]=int(input())
  
isOK=True
for i in range(5):
  for j in range(i,5):
    if(abs(A[i]-A[j]) > A[5]):
      isOK=False
      
if(isOK):
  print("Yay!")
else:
  print(":(")
Buggy code:
#!/usr/bin/env python
a = input()
b = input()
c = input()
d = input()
e = input()
k = input()

if int(e) - int(a) > k:
    print(":(")
else:
    print("Yay!")

Fixed code:
#!/usr/bin/env python
a = input()
b = input()
c = input()
d = input()
e = input()
k = input()

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

Fixed code:
a = [int(input()) for i in range(5)]
k = int(input())
if max(a) - min(a) <= k:
  print("Yay!")
else:
  print(":(")
Buggy code:
a=input()
b=input()
c=input()
d=input()
e=input()
f=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:
L = [int(input()) for i in range(len("abcde"))]
k = int(input())

for i in range(5):
  for j in range(i, 5):
    if abs(L[i] - L[i+j+1]) > k:
      print(":(")
      break
  else:
    continue
  break
else:
  print("Yay!")



Fixed code:
L = [int(input()) for i in range(len("abcde"))]
k = int(input())

for i in range(4):
    for j in range(i+1, 5):
        if abs(L[i] - L[j]) > k:
            print(":(")
            break
    else:
        continue
    break
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-d) <= k and (d-c) <= k and (c-b) <= k and (b-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-d) <= k and (e-c) <= k and (e-b) <= k and (e-a) <= k and (d-c) <= k and (d-b) <= k and (d-a) <= k and (c-b) <= k and (c-a) <= k and (b-a) <= k:
  print("Yay!")
else:
  print(":(")
Buggy code:

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


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


Fixed code:

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


ans = e - a
if k >= ans:
    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 e - a < k:
    print(":(")
    exit()
if d - a < k:
    print(":(")
    exit()
if c - a < k:
    print(":(")
    exit()
if b - a < k:
    print(":(")
    exit()

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(":(")
    exit()
if d - a > k:
    print(":(")
    exit()
if c - a > k:
    print(":(")
    exit()
if b - a > k:
    print(":(")
    exit()

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

Fixed code:
x=[int(input()) for i in range(5)]
k=int(input())
print("Yay!" if max(x)-min(x)<=k else ":(")
Buggy code:
import numpy as np
# points = np.array([0, 1, 2, 3, 4])
points = np.array([input() for _ in range(5)])
thr = input()
diff = max(points[1:] - points[:4])
if diff <= thr:
    print('Yay!')
else:
    print(':(')

Fixed code:
import numpy as np
# points = np.array([0, 1, 2, 3, 4])
points = np.array([int(input()) for _ in range(5)])
thr = int(input())
diff = (points[4] - points[0])
if diff <= thr:
    print('Yay!')
else:
    print(':(')
Buggy code:
a,b,k = 0
for i in range(6):
  t = int(input())
  if(i == 0):
    a = t
  elif(i == 4):
    b = t
  elif(i == 6):
    k = t

if(b - a > k):
  print(':(')
else:
  print('Yay!')

Fixed code:
k = 0
a = 0
b = 0
for i in range(6):
  t = int(input())
  if(i == 0):
    a = t
  elif(i == 4):
    b = t
  elif(i == 5):
    k = t

if(b - a > k):
  print(':(')
else:
  print('Yay!')
Buggy code:
ds = []
for i in range(5):
    ds.append(int(input()))
k = int(input())

cnt = 0
for i in range(5):
    for j in range(i + 1, 5):
        if abs(ds[i] - ds[j]) <= k:
            cnt += 1
if cnt > 0:
    print(':(')
else:
    print("Yay!")


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

cnt = 0
for i in range(5):
    for j in range(i + 1, 5):
        if abs(ds[i] - ds[j]) > k:
            cnt += 1
if cnt > 0:
    print(':(')
else:
    print("Yay!")
Buggy code:
y = "Yey!"
n = ":("
a = int(input().strip())
b = int(input().strip())
c = int(input().strip())
d = int(input().strip())
e = int(input().strip())
k = int(input().strip())

if abs(a - e) > k:
        ans = n
else:
        ans = y
print(ans)


Fixed code:

y = "Yay!"
n = ":("
a = int(input().strip())
b = int(input().strip())
c = int(input().strip())
d = int(input().strip())
e = int(input().strip())
k = int(input().strip())

if abs(a - e) > k:
        ans = n
else:
        ans = y
print(ans)
Buggy code:
import sys

a = int(sys.stdin.readline())
b = int(sys.stdin.readline())
c = int(sys.stdin.readline())
d = int(sys.stdin.readline())
e = int(sys.stdin.readline())
k = int(sys.stdin.readline())
ret = ':)' if k < (e - a) else "Yay!"
print(ret)

Fixed code:
import sys

a = int(sys.stdin.readline())
b = int(sys.stdin.readline())
c = int(sys.stdin.readline())
d = int(sys.stdin.readline())
e = int(sys.stdin.readline())
k = int(sys.stdin.readline())
ret = ':(' if k < (e - a) else "Yay!"
print(ret)
Buggy code:
a = [int(input()) for _ in range(6)]
for i in range(4):
    for j in range(i+1, 5):
        if abs(i-j) > k:
            print(":(")
            exit()
print("Yay!")

Fixed code:
a = [int(input()) for _ in range(6)]
for i in range(4):
    for j in range(i+1, 5):
        if abs(a[i]-a[j]) > a[5]:
            print(":(")
            exit()
print("Yay!")
Buggy code:
N = 6
val = []
for i in range(N):
    val.append(int(input())
if val[4]-val[0] <= val[5]:
    print('Yay!')
else:
    print(':(')


Fixed code:
N = 6
val = []
for i in range(N):
    val.append(int(input()))

if val[4]-val[0] <= val[5]:
    print('Yay!')
else:
    print(':(')
Buggy code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
 
max_diff = max([a, b, c, d, e]) - min([a, b, c, d, e])
ans = "Yay!"
if(max_diff > k):
    ans = ":("


Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
 
max_diff = max([a, b, c, d, e]) - min([a, b, c, d, e])
ans = "Yay!"
if(max_diff > k):
    ans = ":("
print(ans)
Buggy code:
li = []
for i in range(5):
    x = int(input())
    li.append(x)

k = int(input())

ans = "Yey!"

for i in li:
    for j in li:
        if abs(i - j) > k:
            ans = ":("
            print(ans)
            quit()

print(ans)

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

k = int(input())

ans = "Yay!"

for i in li:
    for j in li:
        if abs(i - j) > k:
            ans = ":("
            print(ans)
            quit()

print(ans)
Buggy code:
L = []
for i in range(5):
  x = input()
  L.append(x)
K = int(input())
if L[4] - L[0] <= K:
  print('Yay!')
else:
  print(':(')

Fixed code:
L = []
for i in range(5):
  x = int(input())
  L.append(x)
K = int(input())
if L[4] - L[0] <= 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 ())
if k >= e-a:
  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(":(")
else:
    print("Yay!")
Buggy code:
ae = [int(input()) for _ in range(5)]
ae.sort()
if ae[-1] - ae[0] <= int(Input()):
  print('Yay!')
else:
  print(':(')

Fixed code:
ae = [int(input()) for _ in range(5)]
ae.sort()
if ae[-1] - ae[0] <= int(input()):
  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 e - a < 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:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

l = [e, d, c, b, a]
d = list()

for i, x in enumerate(l[:-1]):
    for y in l[i+1:]:
        d.append(x-y)


print(d)

if max(d) <= 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())

l = [a, b, c, d, e]
d = list()

for i, x in enumerate(l[:-1]):
    l2 = l[i+1:]
    for y in l2:
        d.append(y-x)

if max(d) <= 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())
flag = 0
if k < k - a:
  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("Yay!")
else:
    print(':(')
Buggy code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if b-a>k or c-b>k or d-c>k or e-d>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())

t=e-a

if t > 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())
List=[a,b,c,d,e]
for i in range(len(List)):
    for j in range(i+1,len(List)+1):
        if List[j]-List[i]>k:
            print(":(")
            exit()
print("Yay!")

Fixed code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
List=[a,b,c,d,e]
for i in range(len(List)):
    for j in range(i+1,len(List)):
        if List[j]-List[i]>k:
            print(":(")
            exit()
print("Yay!")
Buggy code:
l = [int(input()) for _ in range(5)]
k = int(input())

for i in range(4):
    for j in range(i,4):
        c = l[i + 1] - l[j]
        if c > k:
            print(":(")
            exit()

print("Yay!")

Fixed code:
l = [int(input()) for _ in range(5)]
k = int(input())

for i in range(4):
    for j in range(i+1,5-i):
        if (l[j] - l[i]) > k:
            print(":(")
            exit()

print("Yay!")
Buggy code:
a,b,c,d,e,k=[int(input())for i in range(6)]
if e-a>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:
s = []
for i in range(5):
  s.append(int(input()))
k = int(input())
if max(s) - min(s) =< k:
  print("Yay!")
else:
  print(":(")

Fixed code:
s = []
for i in range(5):
  s.append(int(input()))
k = int(input())
if max(s) - min(s) > k:
  print(":(")
else:
  print("Yay!")
Buggy code:
c = list()
for i in range(6):
  c.append(int(input()))
if coo[4] - coo[0] > coo[5]:
  print(":(")
else:
  print("Yay!")

Fixed code:
c = list()
for i in range(6):
  c.append(int(input()))
if c[4] - c[0] > c[5]:
  print(":(")
else:
  print("Yay!")
Buggy code:
import sys

antennas = [int(input()) for _ in range(5)]
k = int(input())

for p in range(5):
  for q in range(p+1,5):
    if antennas[q] - antennas[p] > k:
      print ':('
      sys.exit()

print 'Yay!'
      
    

Fixed code:
import sys
 
antennas = [int(input()) for _ in range(5)]
k = int(input())
 
for p in range(5):
  for q in range(p+1,5):
    if antennas[q] - antennas[p] > k:
      print (':(')
      sys.exit()

print ('Yay!')
Buggy code:
for i in range(6):
    a.append(int(input()))

if a[4] - a[0] <= a[5]:
    print('Yay!')
else:
    print(':(')

Fixed code:
a = []

for i in range(6):
    a.append(int(input()))

if a[4] - a[0] <= a[5]:
    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(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:
ds = [int(input()) for _ in range(5)]
k = int(input())
if ds[4]-ds[1]<=k:
  print('Yay!')
else:
  print(':(')


Fixed code:
ds = [int(input()) for _ in range(5)]
k = int(input())
if ds[4]-ds[0]<=k:
  print('Yay!')
else:
  print(':(')
Buggy code:
a = [int(input()) for i in range(5)]
k = int(input())

ans = 0
for i in range(5):
    for j in range(i+1,5):
        print(a[i],a[j])
        if abs(a[i]-a[j]) <= k:
            ans += 1
if ans == 10:
    print("Yay!")
else:
    print(":(")

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

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

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

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:
s=[int,input() for _ in range(6)]
print(':(') if s[4]-s[0]>s[5] else print('Yay!')

Fixed code:
s=[int(input()) for _ in range(6)]
print(':(') if s[4]-s[0]>s[5] else print('Yay!')
Buggy code:
coo = list()
for i in range(6):
    coo.append(int(input()))
if coo[4] - coo[0] > coo[5]:
    print(":(")
else:
    print("Yey!")
    

Fixed code:
coo = list()
for i in range(6):
    coo.append(int(input()))
if coo[4] - coo[0] > coo[5]:
    print(":(")
else:
    print("Yay!")
Buggy code:
a = []
for i in range(5):
    l = int(input())
    a.append(l)
k = int(input())

if a[4]-a[0] >= k:
    print('Yay!')
else:
    print(':(')

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

if a[4]-a[0] <= 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())

if a-e <= k:
  print('Yay!')
elif a-b > k or c-b > k or d-c > k or e-d > k:
  print(':(')
elif c-a > k or d-b > k or e-c > k:
  print(':(')
elif d-a > k or e-b > k:
  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!')
elif b-a > k or c-b > k or d-c > k or e-d > k:
  print(':(')
elif c-a > k or d-b > k or e-c > k:
  print(':(')
elif d-a > k or e-b > k:
  print(':(')
elif e-a > k:
  print(':(')
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(':(')  
else:
    print('Yay!')

Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
x = e - a
if x > 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(":(")
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:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if (b-a>=k and c-b>=k and d-c>=k and e-d>=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:
t = [int(input()) for i in range(5)] 
k = int(input())

c = t
have = False
for i in range(0,5):
    for j in range(0,5):
        if j != i:
            if abs(t[i] - c[j]) > k:
                have = True
    
if have:
    print(":(")
else:
    print("yay")

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

c = t
have = False
for i in range(0,5):
    for j in range(0,5):
        if j != i:
            if abs(t[i] - c[j]) > k:
                have = True
    
if have:
    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())
if e-a <= k:
    print("Yay!")
else:
    print(":()")


Fixed code:
# -*- coding: utf-8 -*-
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 = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if (b-a<=k and c-b<=k and d-c<=k and e-d<=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:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
l = [
    b - a, c - a, d - a, e - a, c - b, d - b, e - b, d - c, e - c, e - d
]


for i in l:
    print(i)
    if l[i] > k:
        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())
l = [
    b - a, c - a, d - a, e - a, c - b, d - b, e - b, d - c, e - c, e - d
]

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



Fixed code:
a = []
for i in range(5):
  a.append(int(input()))
  
k =int(input())
if k >= (a[4] - a[0]):
  print('Yay!')
else:
  print(':(')
Buggy code:
antena = [int(input()) for x in range(5)]
lim = int(input())
boo = True
for i in range(1, 5):
  k = antena[i] - antena[i - 1]
  if k > lim:
    boo = False
if boo:
  print("Yay!")
else:
  print(":(")

Fixed code:
antena = [int(input()) for x in range(5)]
lim = int(input())
boo = True
for i in range(1, 5):
  for j in range(i):
    k = antena[i] - antena[j]
    if k > lim:
      boo = False
if boo:
  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 e-a > 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())

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 and (c-b) <= k and (d-c) <= k and (e-d) <= 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())

# print(a)
# print(b)
# print(c)
# print(d)
# print(e)
# print(k)

# print(e - a)

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