qyliang/CodeNanoFix huggingface dataset:
Buggy code:
antena=[]
for i in range(0, 5):
    antena.append(int(input()))
k = int(input())
flag = 0
for i in range(0, 4):
    for j in range(i+1, 5):
        if antena[j]-antena[i]>k:
            flag = 1
if flag==0:
    print("Yey!")
else:
    print(":(")


Fixed code:
antena=[]
for i in range(0, 5):
    antena.append(int(input()))
k = int(input())
flag = 0
for i in range(0, 4):
    for j in range(i+1, 5):
        if antena[j]-antena[i]>k:
            flag = 1
if flag==0:
    print("Yay!")
else:
    print(":(")
Buggy code:
antenna = []
for i in range(5):
  antenna.append(int(input()))
K = int(input())

d = True
for i in range(5):
  if d:
  for j in range(i,5):
    if antenna[j]-antenna[i] > K:
      print(':(')
      d = False
      break
if d:
  print('Yay!')

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

d = True
for i in range(5):
  if d:
    for j in range(i,5):
      if antenna[j]-antenna[i] > K:
        print(':(')
        d = False
        break
if d:
  print('Yay!')
Buggy code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
a.b=b-a
a.c=c-a
a.d=d-a
a.e=e-a
b.c=c-b
b.d=d-b
b.e=e-b
c.d=d-c
c.e=e-c
d.e=e-d
if a.b<=k and a.c<=k and a.d<=k and a.e<=k and b.c<=k and b.d<=k and b.e<=k and c.d<=k and c.e<=k and d.e<=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:
inputs = []
for i in range(6):
    inputs.append(int(input()))

bar = inputs[:-1]
n = 5
k = inputs[-1]

ok = True

for i in range(n):
    for j in range(i,n):
        # print("i: {}, j:{}".format(i,j))
        if abs(bar[i] - bar[n-1-j]) > k:
            ok = False
            break

if ok:
    print("Yay!")
else:
    print(":)")


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

bar = inputs[:-1]
n = 5
k = inputs[-1]

ok = True

for i in range(n):
    for j in range(n):
        # print("i: {}, j:{}".format(i,j))
        if abs(bar[i] - bar[j]) > k:
            ok = False
            break
            

if ok:
    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 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(b-e) > k or abs(c-d) > k or abs(c-e) > k orabs(d-e) > 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 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(b-e) > k or abs(c-d) > k or abs(c-e) > k or abs(d-e) > k:
  print(':(')
else:
  print('Yay!')
Buggy code:
a=[]
for i in range(4):
    b=int(input())
    a.append(b)
c=int(input())
if a[0] - a[4] <= c:
    print('Yay!')
else:
    print(':(')

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

if nums[4] - nums[0] > nums[5]:
  print ':('
print 'Yay!'

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

if nums[4] - nums[0] > nums[5]:
  print(':(')
else:
  print('Yay!')
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("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:
from itertools import combinations
s=[int(input())for _ in[0]*6]
k=s.pop()
r="Yay!"
for i,j in combinations(s,2):
	if j-i>k:
		r=":)";break
print(r)

Fixed code:
from itertools import combinations
s=[int(input())for _ in[0]*6]
k=s.pop()
r="Yay!"
for i,j in combinations(s,2):
	if j-i>k:
		r=":(";break
print(r)
Buggy code:
a,b,c,d,e = [int(input) for i in range(6)]
print('Yay!' if e-a <= k else ':(')

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

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

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

if I[4] - I[0] > I[5] :
	print(":(")
else :
	print("Yay!")
Buggy code:
from itertools import combinations as comb

z_list = []
for i in range(5):
    z = int(input())
    z_list.append(z)
k = int(input())

z_comb_list = list(comb(z_list, 2))

flag = True
for comb in z_comb_list:
    if abs(comb[0] - comb[1]) > k:
        print(":)")
        flag = False
        break

if flag:
    print("Yay!")


Fixed code:
from itertools import combinations as comb

z_list = []
for i in range(5):
    z = int(input())
    z_list.append(z)
k = int(input())

z_comb_list = list(comb(z_list, 2))

flag = True
for comb in z_comb_list:
    if abs(comb[0] - comb[1]) > k:
        print(":(")
        flag = False
        break

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

Fixed code:
x = []
for i in range(6):
    x.append(int(input()))
if x[5] >= (max(x[:5])-min(x[:5])):
    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 x in range(i,5):
        if A[x] - A[i] > k:
            ans = ans + 1
print(ans)
if ans > 0:
    print(":(")
else:
    print("Yay!")

Fixed code:
A = [int(input()) for i in range(5)]
k = int(input())
ans = 0
for i in range(5):
    for x in range(i,5):
        if A[x] - A[i] > k:
            ans = ans + 1
if ans > 0:
    print(":(")
else:
    print("Yay!")
Buggy code:

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

ok = True
for x in xs:
    for y in ys:
        if abs(x-y) > k:
            ok = False

print("Yay!" if ok else ":(")

Fixed code:

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

ok = True
for x in xs:
    for y in xs:
        if abs(x-y) > k:
            ok = False

print("Yay!" if ok else ":(")
Buggy code:
a = []
for i in range(5):
    a.append(int(input()))

k = int(input())
if a[5] - a[0] > k:
    print(":(")
else:
    print("Yay!")

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

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

Fixed code:
l=[]
for _ in range(5):
    l.append(int(input()))
k = int(input())
print('Yay!' if l[-1] - l[0]<=k else ':(')
Buggy code:
l=[int(input()) for i in range(5)]
a,c=min(l),max(l)
k=int(input())
print("Yay!") if (a-b)**2<=k**2 else print(":(")

Fixed code:
l=[int(input()) for i in range(5)]
a,c=min(l),max(l)
k=int(input())
print("Yay!") if (a-c)**2<=k**2 else print(":(")
Buggy code:
arr = []
for i in range(5):
  arr.append(int(input()))
k = int(input())
if k < max(arr) - min(arr):
  print('Yay!')
else:
  print(':(')

Fixed code:
arr = []
for i in range(5):
  arr.append(int(input()))
k = int(input())
if k >= max(arr) - min(arr):
  print('Yay!')
else:
  print(':(')
Buggy code:
def check_num():
  if b-a > k or c-a > k or d-a > k or e-a > k or c-b > k or d-b > k or e-b > k or d-c > k or e-c > k or e-d > k:
    print(":(")
  else:
    print("Yey!")


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

Fixed code:
def check_num():
  if b-a > k or c-a > k or d-a > k or e-a > k or c-b > k or d-b > k or e-b > k or d-c > k or e-c > k or e-d > k:
    print(":(")
  else:
    print("Yay!")


a, b, c, d, e, k = [int(input()) for _ in range(6)]
check_num()
Buggy code:
A=[]
for i in range(6):
  A.append(int(input()))
X=A[4]-A[0]
if X=<A[5]:
  print("Yay!")
else:
  print(":(")

Fixed code:
A=[]
for i in range(6):
  A.append(int(input()))
X=A[4]-A[0]
if X<=A[5]:
  print("Yay!")
else:
  print(":(")
Buggy code:
input_lines = input().split()
a = int(input_lines[0])
input_lines = input().split()
b = int(input_lines[0])
input_lines = input().split()
c = int(input_lines[0])
input_lines = input().split()
d = int(input_lines[0])
input_lines = input().split()
e = int(input_lines[0])
input_lines = input().split()
k = int(input_lines[0])
if e - a <= k:
    print("Yay!")
else:
    print(":()")


Fixed code:
input_lines = input().split()
a = int(input_lines[0])
input_lines = input().split()
b = int(input_lines[0])
input_lines = input().split()
c = int(input_lines[0])
input_lines = input().split()
d = int(input_lines[0])
input_lines = input().split()
e = int(input_lines[0])
input_lines = input().split()
k = int(input_lines[0])
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 = []
l.append(a)
l.append(b)
l.append(c)
l.append(d)
l.append(e)
ans = 0
for i in range(5):
    for j in range(i+1,5):
        if l[j] - l[i] > k :
            ans += 1

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

l = []
l.append(a)
l.append(b)
l.append(c)
l.append(d)
l.append(e)
ans = 0
for i in range(5):
    for j in range(i+1,5):
        if l[j] - l[i] > k :
            ans += 1

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

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

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

Fixed code:
a = [0]*6
for i in range(6):
    a[i] = int(input())

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

Fixed code:
a = [0]*5
for i in range(5):
  a[i] = int(input())
k = int(input())
if (max(a)-min(a))>k:
  print(':(')
else:
  print('Yay!')
Buggy code:
import sys

args = [int(input()) for i in range(6)]

 if (args[0] - arg[4]) > args[5]:
            print(":(")
            sys.exit()
print("Yay!")

Fixed code:
import sys

args = [int(input()) for i in range(6)]

if (args[4] - args[0]) > args[5]:
    print(":(")
    sys.exit()
print("Yay!")
Buggy code:
import sys

args = [input() for i in range(6)]

for arg1 in args[:5]:
    for arg2 in args[1:5]:
        if (arg2 - arg1) > args[5]:
            print(":(")
            sys.exit()
print("Yay!")

Fixed code:
import sys

args = [int(input()) for i in range(6)]


for arg1 in args[:5]:
    for arg2 in args[1:5]:
        if (arg2 - arg1) > args[5]:
            print(":(")
            sys.exit()
print("Yay!")
Buggy code:

import sys

args = [input() for i in range(6)]

loops1 = 4
loops2 = 5
arg1 = 0
arg2 = 1

for i in range(arg1,loops1):
	for j in range(arg2,loops2):
		if (args[j] - args[i]) > args[5]:
			print(":(")
			sys.exit()
print("Yay!")
	             

Fixed code:
import sys

loops1 = 4
loops2 = 5
arg1 = 0
arg2 = 1

i=0
j=0

args = [int(input()) for i in range(6)]

for i in range(arg1,loops1):
	for j in range(arg2,loops2):
		if (args[j] - args[i]) > args[5]:
			print(":(")
			sys.exit()
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 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())
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())

diff = 0

ant_list = []

ant_list.append(a)
ant_list.append(b)
ant_list.append(c)
ant_list.append(d)
ant_list.append(e)

judge = True

for i in range(len(ant_list) - 1):

    for j in range(5-i):
        diff  = ant_list[4-j] - ant_list[i]
        print(diff)
        if diff > k:
            judge = False
            break
    else:
        continue

if judge:
    print('Yay!')
else:
    print(':(')

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

k = int(input())

diff = 0

ant_list = []

ant_list.append(a)
ant_list.append(b)
ant_list.append(c)
ant_list.append(d)
ant_list.append(e)

judge = True

for i in range(len(ant_list) - 1):

    for j in range(5-i):
        diff  = ant_list[4-j] - ant_list[i]

        if diff > k:
            judge = False
            break
    else:
        continue

if judge:
    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 = [e, d, c, b, a]
de = e - d
ce = e - c
cd = d - c
be = e - b
bd = d - b
bc = c - b
ae = e - a
ad = d - a
ac = c - a
ab = b - a
distance = [ab, ac, ad, ae, bc, bd,be, cd, ce, de]
output = []
ok = 'Yay!'
bad = ':('
for i in distance:
    if i >= k:
        output.append(bad)
    else i < k:
        output.append(ok)
if bad in output:
    print(bad)
elif ok in output:
    print(ok)

Fixed code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
de = e - d
ce = e - c
cd = d - c
be = e - b
bd = d - b
bc = c - b
ae = e - a
ad = d - a
ac = c - a
ab = b - a
distance = [ab, ac, ad, ae, bc, bd, be, cd, ce, de]
output = []
ok = 'Yay!'
bad = ':('
for i in distance:
    if i > k:
        output.append(bad)
    elif i <= k:
        output.append(ok)
if bad in output:
    print(bad)
elif ok in output:
    print(ok)
Buggy code:
import numpy as np
a=list(input())
dero=np.zeros((25,2))
for i in range(5):
  for j in range (5):
    dero[i*5+j][0]=a[j]-a[i]
    dero[i*5+j][1]=a[5]
frag=0
for i in range(25):
  if dero[i][0]>dero[i][1]:
    frag=1
if frag==0:
  print("Yay!")
else:
    print(":(")

Fixed code:
import numpy as np
n=6
a=[int(input()) for i in range(n)]
dero=np.zeros((25,2))
for i in range(5):
  for j in range (5):
    dero[i*5+j][0]=a[j]-a[i]
    dero[i*5+j][1]=a[5]
frag=0
for i in range(25):
  if dero[i][0]>dero[i][1]:
    frag=1
if frag==0:
  print("Yay!")
else:
    print(":(")
Buggy code:
ant = []

for i in range(5):
    ant.append(int(input()))
k = int(input())

for i in range(0,5):
    for j in range(1,5):
        if abs(ant[i] - ant[j]) > k:
            print(':(')
            exit()
print('Yey!')

Fixed code:
ant = []
 
for i in range(5):
    ant.append(int(input()))
k = int(input())
 
for i in range(0,5):
    for j in range(i+1,5):
        if abs(ant[i] - ant[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:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

if a - e > k or a - b < -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 a - e > k or a - e < -k:
    print(":(")
else:
    print("Yay!")
Buggy code:
#2019/10/03
# a, b, c, d, e, k = list(map(int, open(0).read().split()))
# print("Yay!" if (b-a<=k and c-a<=k and d-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) else ":(") )

antn = list(map(int, open(0).read().split()))
flg = 0
for i in range(0,3):
    for j in range(i+1, 3):
        if (antn[j] - antn[i] > antn[5]):
            flg = 1
print("Yay!" if flg == 0 else ":(")

Fixed code:
#2019/10/03
# a, b, c, d, e, k = list(map(int, open(0).read().split()))
# print("Yay!" if (b-a<=k and c-a<=k and d-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) else ":(") )

antn = list(map(int, open(0).read().split()))
flg = 0
for i in range(0,4):
#    print(i,j)
    j=0
    for j in range(i+1, 5):
        if (antn[j] - antn[i] > antn[5]):
            flg = 1
print("Yay!" if flg == 0 else ":(")
Buggy code:
A = [int(input()) for i in range(5)]
k = int (input())
min_dis = [abs(A[i] - A[j]) for i in range(5) for j in range(i+1, 5)]
print(":(") if min_dis > k else print("Yay!")

Fixed code:
A = [int(input()) for i in range(5)]
k = int (input())
max_dis = max([abs(A[i] - A[j]) for i in range(5) for j in range(i+1, 5)])
print(":(") if max_dis > k else print("Yay!")
Buggy code:
inputstr1 = [input() for inputstr1 in range(6)]

a = int(inputstr1[0])
b = int(inputstr1[1])
c = int(inputstr1[2])
d = int(inputstr1[3])
e = int(inputstr1[4])
k = int(inputstr1[5])

inputmax = max(a, b, c, d, e)
inputmin = min(a, b, c, d, e)


if inputmax - inputmin <= k :
    print("yay!")
else:
    print(":(")

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

a = int(inputstr1[0])
b = int(inputstr1[1])
c = int(inputstr1[2])
d = int(inputstr1[3])
e = int(inputstr1[4])
k = int(inputstr1[5])

inputmax = max(a, b, c, d, e)
inputmin = min(a, b, c, d, e)


if inputmax - inputmin <= k :
    print("Yay!")
else:
    print(":(")
Buggy code:
from sys import stdin

i = [int(x) for x in stdin.readlines()]
j = i[-1]
i.pop()

if max(i)-min(i) > j:
  print(':(')
else:
  print('yay!')

Fixed code:
from sys import stdin

i = [int(x) for x in stdin.readlines()]
j = i[-1]
i.pop()

if max(i)-min(i) > j:
  print(':(')
else:
  print('Yay!')
Buggy code:
li = [int(input()) for i in range(6)]

for i in range(4):
    for j in range(4):
        if (li[j] - li[i]) and (i!=j) > li[-1]:
            print(":(")
            quit()

print("Yay!")
        


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

for i in range(5):
    for j in range(5):
        if (li[j] - li[i]) > li[-1] and i!=j:
            print(":(")
            quit()

print("Yay!")
Buggy code:
li = []
for i in range(5):
    li.append(int(input()))

k = int(input())
li = sorted(li)
if k > li[4] - li[0]:
    print("Yey!")
else:
    print(":(")

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

k = int(input())
li = sorted(li)
if k >= li[4] - li[0]:
    print("Yay!")
else:
    print(":(")
Buggy code:
a = [int(input()) for _ in range(5)]
k = int(input())
print(a)
if a[-1] - a[0] <= k:
    print('Yay!')
else:
    print(':(')

Fixed code:
a = [int(input()) for _ in range(5)]
k = int(input())
if (a[-1] - a[0]) <= k:
    print('Yay!')
else:
    print(':(')
Buggy code:
A = list(map(int,open(0).read().split()))
k = A.pop()

ans = 'Yay!'

for i in range(len(A)-1):
    for j in range(i+1, len(A)):
        d = abs(A[i] - A[j])
        print(d)
        if d > k:
            ans = ':('

print(ans)


Fixed code:
A = list(map(int,open(0).read().split()))
k = A.pop()
 
ans = 'Yay!'
 
for i in range(len(A)-1):
    for j in range(i+1, len(A)):
        d = abs(A[i] - A[j])
        if d > k:
            ans = ':('
print(ans)
Buggy code:
x = [int(input()) for i in range(5)]
k = int(input())

for i in range(4):
  for _ in range(1,5):
    if x[i] - x[_] > k:
      print(":(")
    exit()
else:
  print("Yay!")


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

for i in range(4):
  for _ in range(1,5):
    if abs(x[i] - x[_]) > k:
      print(":(")
      exit()
print("Yay!")
Buggy code:
#coding:utf-8

import sys

L = list(int(input()) for i in range(6))

for i in range(5):
        for j in range(5):
            if abs(L[i]-L[j]) > L[6]:
                print(":(")
                sys.exit()

print("Yay!")

Fixed code:
#coding:utf-8

import sys

L = list(int(input()) for i in range(6))

for i in range(5):
        for j in range(5):
            if abs(L[i]-L[j]) > L[5]:
                print(":(")
                sys.exit()

print("Yay!")
Buggy code:
dist = [0]*5
for i in range(5):
    dist[i] = int(input())
k = int(input())

for i in range(5):
    for j in range(i):
        if abs(dist[j]-dist[i]) > k:
            exit(":(")

print("Yay!")

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

for i in range(5):
    for j in range(i):
        if abs(dist[j]-dist[i]) > k:
            print(":(")
            exit()

print("Yay!")
Buggy code:
x = [int(input()) for _ in range(6)]

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

Fixed code:
x = [int(input()) for _ in range(6)]

if x[4] - x[0] <= x[5]:
    print('Yay!')
else:
    print(':(')
Buggy code:
d = [int(input()) for i in range(5)]
k = int(input())
ans = 'Yey!'
for i in d:
    for j in d:
        if abs(i-j)>k:
            ans = ':('
print(ans)


Fixed code:
d = [int(input()) for i in range(5)]
k = int(input())
ans = 'Yay!'
for i in d:
    for j in d:
        if abs(i-j)>k:
            ans = ':('
print(ans)
Buggy code:
antenna = [int(input()) for i in range(5)]
k = int(input())
ans = 'Yey!'
for i in range(5):
    for j in range(i):
        if abs(antenna[i]-antenna[j])>k:
            ans = ':('
print(ans)

Fixed code:
antenna = [int(input()) for i in range(5)]
k = int(input())
ans = 'Yay!'
for i in range(5):
    for j in range(i):
        if abs(antenna[i]-antenna[j])>k:
            ans = ':('
print(ans)
Buggy code:
a,_,_,_,e,k=[int(input()) for i in range(6)]
print(":(" if e-a>ks else "Yay!")


Fixed code:
a,_,_,_,e,k=[int(input()) for i in range(6)]
print(":(" if e-a>k else "Yay!")
Buggy code:
v=list(map(int,open(0).read().split()))
print(":("if v[5]<v[4]-v[0]else"Yay")

Fixed code:
v=list(map(int,open(0).read().split()))
print(":("if v[5]<v[4]-v[0]else"Yay!")
Buggy code:
a = []
for i in range(5):
	a.append(int(input().split()))
k = int(input().split())

for i in range(4):
  if a[i+1] - a[i] > k :
    print(": (")
    exit()

print("Yay!")

Fixed code:
a = []
for i in range(5):
	a.append(int(input()))
k = int(input())
 
for i in range(4):
  for j in range(i+1, 5): 
    if a[j] - a[i] > 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 k >= e-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())

m=e-a
if m>k:
  print(":(")
else:
  print("Yay!")
Buggy code:
def resolve():
	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:
A = [input() for i in range(5)]
k = int(input())
if A[-1]-A[0] <= k:
	print('Yay!')
else:
	print(':(')
	

Fixed code:
A = [int(input()) for i in range(5)]
A.sort()
k = int(input())
if A[-1]-A[0] <= k:
	print("Yay!")
else:
	print(":(")