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 and c-b<=k and d-c<=k and 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-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:
from sys import stdin

li = [int(stdin.readline().rstrip()) for _ in range(5)]
k = int(stdin.readline().rstrip())

from itertools import combinations
lin = list(combinations(li, 2))

for i in li:
    if abs(lin[i][0]-lin[i][1]) > k:
        print(":(")
        exit()

print("Yay!")

Fixed code:
from sys import stdin

li = [int(stdin.readline().rstrip()) for _ in range(5)]
k = int(stdin.readline().rstrip())

from itertools import combinations
lin = list(combinations(li, 2))

for i in range(len(lin)):
    if abs(lin[i][0]-lin[i][1]) > k:
        print(":(")
        exit()

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

Fixed code:
a, b, c, d, e = int(input()), int(input()), int(input()), int(input()), int(input())
if abs(e-a) <= 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 max((b-a),(c-a),(d-a),(e-a),(c-b),(d-b),(e-b),(d-c),(e-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 max((b-a),(c-a),(d-a),(e-a),(c-b),(d-b),(e-b),(d-c),(e-c),(e-d)) > k:
  print(":(")
else:
  print("Yay!")
Buggy code:
a = int(input())
ma = a
mi = a
for i in range(4):
  x = int(input())
  if ma < x:
    ma = x
  elif mi > x:
    mi = x
if ma - mi > int(input()):
  print("Yay!")
else:
  print(":(")

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

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

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

print("Yay!" if abs(a - e) <= k else ":(")
Buggy code:
antenna = [input() for _ in range(5)]
k = int(input())

check = True
for i in range(4):
  if int(antenna[i+1]) - int(antenna[i]) > k:
    check = False
    
print("Yay!" if check else ":(")

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

check = True
for i in range(4):
  for j in range(i+1,5):
    if int(antenna[j]) - int(antenna[i]) > k:
      check = False

print("Yay!" if check else ":(")
Buggy code:
antena = [int(input()) for _ in range(5)]
k = int(input())

flg = True
for i in range(len(antena)):
  for j in range(len(antena)):
    if a[i] - a[j] > k:
      flg = False
      break
    
if flg:
  print('Yay!')
else:
  print(':(')



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

flg = True
for i in range(len(antena)):
  for j in range(len(antena)):
    if antena[i] - antena[j] > k:
      flg = False
      break
    
if flg:
  print('Yay!')
else:
  print(':(')
Buggy code:
import itertools

aList = []

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

k = int(input())

aiList = list(itertools.combinations(aList,2))

for j in aiList:
  if j[1] - j[0] >k:  
    print(":(")
    exit(0)

print("Yap")


Fixed code:
import itertools

aList = []

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

k = int(input())

aiList = list(itertools.combinations(aList,2))

for j in aiList:
  if j[1] - j[0] >k:  
    print(":(")
    exit(0)

print("Yay!")
Buggy code:
ans = [int(input()) for _ in range(6)]
print(':(' if abs(ans[0]-ans[4]) <= ans[-1] else 'Yay!')

Fixed code:
ans = [int(input()) for _ in range(6)]
print(':(' if abs(ans[0]-ans[4]) > ans[-1] else 'Yay!')
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(b-c) > k or abs(c-d) > k or abs(d-e) > k or abs(a-d) > k
or abs(a-c) > k or abs(a-e) > k or abs(b-d) > k or abs(b-e) > k or abs(c-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(b-c) > k or abs(c-d) > k or abs(d-e) > k or abs(a-d) > k or abs(a-c) > k or abs(a-e) > k or abs(b-d) > k or abs(b-e) > k or abs(c-e) > k:
    print(":(")
else:
    print("Yay!")
Buggy code:
from itertools import combinations

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

com = [True if antennae[i] - antennae[j] <= k else False for i, j in combinations(range(4), 2)]
if sum(com) == len(list(combinations(range(4), 2))):
    print('Yay!')
else:
    print(':(')

Fixed code:
from itertools import combinations

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

com = [True if antennae[j] - antennae[i] <= k else False for i, j in combinations(range(5), 2)]
if sum(com) == len(list(combinations(range(5), 2))):
    print('Yay!')
else:
    print(':(')
Buggy code:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())

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

x.sort()
if x[4] - x[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())

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

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

Fixed code:
a = []
for i in range (5):
  a += [int(input())]
k = int(input())
a.sort()
kekka = ":("
if a[4] - a[0] <= k:
  kekka = "Yay!"
print(kekka)
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-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(':(')


        

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=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
k=int(input())
if k+e>=a:
    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:
import sys
a = []
for i in range(6):
  a.append(int(input()))
for i in range(5):
  for j in range(5):
    if abs(a[i] - a[j]) > a[5]:
      print('Yay!')
      sys.exit()
print(':(')

Fixed code:
import sys
a = []
for i in range(6):
    a.append(int(input()))
for i in range(5):
    for j in range(5):
        if abs(a[i] - a[j]) > a[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 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("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:
antena = [0]*5
for i in range(5):
  antena[i] = int(input())
  
k = int(input())
 
for i in range(len(antena)):
  if antena[-1]-antena[i]>k:
    print(":(")
else:
  print("Yay!")

Fixed code:
antena = [0]*5
for i in range(5):
  antena[i] = int(input())
  
k = int(input())
 
for i in range(len(antena)):
  if antena[-1]-antena[i]>k:
    print(":(")
    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 k<=e-a :
  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>=e-a :
  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 c-a>k or 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())
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-Five Antennas(ABC123)
X=[int(input()) for i in range(5)]
K=int(input())
print(X)
X.sort()
if (X[4]-X[0])<=K:
    print("Yay!")
else:
    print(":(")    

Fixed code:
#A-Five Antennas(ABC123)
X=[int(input()) for i in range(5)]
K=int(input())
X.sort()
if (X[4]-X[0])<=K:
    print("Yay!")
else:
    print(":(")
Buggy code:
distances = [int(input()) in _ for range(5)]
K = int(input())

if distances[-1] - distances[0] > K:
  print(":(")
else:
  print("Yay!")
  

Fixed code:
distances = [int(input()) for _ in range(5)]
K = int(input())
 
if distances[-1] - distances[0] > K:
  print(":(")
else:
  print("Yay!")
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 = 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)]
n=int(input())
a=max(l)
b=min(l)
if(n<=a-b):
  print("Yay!")
else:
  print(":(")


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

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

A = [0, 0, 0, 0, 0]
A[0] = int(input())
A[1] = int(input())
A[2] = int(input())
A[3] = int(input())
A[4] = int(input())
k = int(input())

flg = 0

for i in range(4):
    if k < (A[i+1] - A[i]):
        flg = 1
        print(":(")
        break
if flg == 0:
    print("Yay!")


Fixed code:

A = [0, 0, 0, 0, 0]
A[0] = int(input())
A[1] = int(input())
A[2] = int(input())
A[3] = int(input())
A[4] = int(input())
k = int(input())

flg = 0

for i in range(0, 4, 1):
    if flg == 1:
        break

    for j in range(i+1, 5, 1):
        if k < (A[j] - A[i]):
            flg = 1
            print(":(")
            break

if flg == 0:
    print("Yay!")
Buggy code:
import itertools
import sys

def main():
    n = []
    for i in range(5):
        n.append(int(input()))
    k = int(input())
    for c in itertools.combinations(n, 2):
        if abs(c[0] - c[1]) <= k:
            print(':(')
            sys.exit()
    else:
        print('Yay!')

if __name__ == '__main__':
    main()



Fixed code:
import itertools
import sys

def main():
    n = []
    for i in range(5):
        n.append(int(input()))
    k = int(input())
    for c in itertools.combinations(n, 2):
        if abs(c[0] - c[1]) > k:
            print(':(')
            sys.exit()
    else:
        print('Yay!')

if __name__ == '__main__':
    main()
Buggy code:
A=[int(input()) for i in range(5)]
k=int(input())

for i in range(4):
	for i in range(i):
		if A[i]-A[j]>k:
			print(""":(""")
			exit()
print("Yay!")

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

for i in range(5):
  for j in range(i):
    if A[i]-A[j]>k:
      print(":(")
      exit()
print("Yay!")
Buggy code:
i=[int(input()) for _ in range(6)]
o=':(' if i[0]-i[4]>i[5] else 'Yay!'
print(o)

Fixed code:
i=[int(input()) for _ in range(6)]
o=':(' if i[4]-i[0]>i[5] else 'Yay!'
print(o)
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 abs(e-a)<=k:
    print('Yay!')
else:
    print(':(')
Buggy code:
L = []

for i in range(5):
   L.append(int(input()))
k = int(input())
L.sort()
print(L)
if L[-1] - L[0] > k:
  print(":(")

else:
  print("Yay!")



Fixed code:
L = []

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

if L[-1] - L[0] > k:
  print(":(")

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

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

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

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

if max(nums) - min(nums) > 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())

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

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

i = e-a

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

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

Fixed code:
a = int(input())
b = input()
c = input()
d = 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-a<=k and d-a<=k and e-a<=k:
    if c-b<=k and d-b<=k and e-b<=k:
        if d-c<=k and e-c<=k:
            if e-d<=k:
                print("Yey!")
            else:
                print(":()")
        else:
            print(":()")
    else:
        print(":()")
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:
    if c-b<=k and d-b<=k and e-b<=k:
        if d-c<=k and e-c<=k:
            if e-d<=k:
                print("Yay!")
            else:
                print(":(")
        else:
            print(":(")
    else:
        print(":(")
else:
    print(":(")
Buggy code:
a = input()
b = input()
c = input()
d = input()
e = input()
k = input()
a < b < c < d < e

f = abs(e - a)
if k >= f:
    print('Yay!')
else:
    print(':(')

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

f = abs(e - a)
if k >= f:
    print('Yay!')
else:
    print(':(')
Buggy code:
a = list()
a.append(int(input()))
a.append(int(input()))
a.append(int(input()))
a.append(int(input()))
a.append(int(input()))
k = int(input())

result = True
for i in range(len(a)):
    for j in range(i+1, len(a)):
        if a[j] - a[i] > k:
            print(':(')
print('Yay!')


Fixed code:
a = list()
a.append(int(input()))
a.append(int(input()))
a.append(int(input()))
a.append(int(input()))
a.append(int(input()))
k = int(input())

result = True
for i in range(len(a)):
    for j in range(i+1, len(a)):
        # print(i, j)
        if a[j] - a[i] > k:
            result = False

if result:
    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 and abs(b-c)<=k and abs(c-d)<=k and abs(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:
A = [int(input()) for _ in range(5)]
K = int(input())
print('Yay' if A[4] - A[0] <= K else ':(')


Fixed code:
A = [int(input()) for _ in range(5)]
K = int(input())
print('Yay!' if A[4] - A[0] <= K else ':(')
Buggy code:
a=[]
for _ in range (6):
	a.append(int(input()))
k=a[5]
a.remove(5)
if max(a)-min(a)>k:
	print(":(")
else:
	print("Yay!")

Fixed code:
a=[]
for _ in range (6):
	a.append(int(input()))
k=a[5]
del a[5]
if max(a)-min(a)>k:
	print(":(")
else:
	print("Yay!")
Buggy code:
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(4):
  for j in range(i+1,5):
    if abs(A[i]-A[j]) > K:
      print(':(')
      exit()
print('Yay!')

Fixed code:
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(4):
  for j in range(i+1,5):
    if abs(A[i]-A[j]) > K:
      print(':(')
      exit()
print('Yay!')
Buggy code:

args = {}

l = ["a", "b", "c", "d", "e", "k"]
for i in range(len(l)):
    args[l[i]] = int(input())


# 5-4
# 5-3
# 5-2
# 5-1

# 4-3
# 4-2
# 4-1

# 3-2
# 3-1

# 2-1

for i in range(len(l) - 1):
    j = 5-i
    for m in range(len(l) - 2):
        n = j - (m+1)
        if n <= 0:
            continue
        if l[j] - l[n] > l["k"]:
            print(':(')
            exit()
print("Yay!")


Fixed code:
args = {}
l = ["a", "b", "c", "d", "e", "k"]
for i in range(len(l)):
    args[l[i]] = int(input())
for i in range(len(l) - 1):
    j = 5-i
    for m in range(len(l) - 2):
        n = j - (m+1)
        if n <= 0:
            continue
        if args[l[j-1]] - args[l[n-1]] > args["k"]:
            print(':(')
            exit()
print("Yay!")
Buggy code:
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
f=int(input())
k=int(input())

if b-a>k or c-b>k or d-c>k or e-d>k or f-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())

print(":(" if e-a>k else "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 abs(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(""))
M=max(a,b,c,d,e)
m=min(a,b,c,d,e)
sa=M-m
if sa>=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(""))
M=max(a,b,c,d,e)
m=min(a,b,c,d,e)
sa=M-m
if sa<=k:
    print('Yay!')
else:
    print(':(')
Buggy code:
anntena_list = []
 
for i in range(5):
    anntena_list.append(int(input()))
    
m = int(input())
    
flag = False
for i in range(4):
  for j in range(4-i):
    if anntena_list[4-i] - anntena_list[j]  > m:
      flag = True
      
if flag:
  print(':C')
else:
  print('Yay!')

Fixed code:
anntena_list = []
 
for i in range(5):
    anntena_list.append(int(input()))
    
m = int(input())
    
flag = False
for i in range(4):
  for j in range(3-i):
    if anntena_list[4-i] - anntena_list[j]  > m:
      flag = True
      
if flag:
  print(':(')
else:
  print('Yay!')
Buggy code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 26 17:52:43 2019

@author: nakamuratakayuki
"""

atoe = []
for i in range(5):
    atoe.append(int(input()))
k = int(input())
ans = 'Yey!'
if atoe[4]-atoe[0] > k:
        ans = ':('
print(ans)

Fixed code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 26 17:52:43 2019

@author: nakamuratakayuki
"""

atoe = []
for i in range(5):
    atoe.append(int(input()))
k = int(input())
ans = 'Yay!'
if atoe[4]-atoe[0] > 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 (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 abs(a-e)<=k:
  print("Yay!")
else:
  print(":(")
Buggy code:
import itertools

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

for v in itertools.combinations([a, b, c, d, e], 2):
    print(v)
    if v[1]-v[0] > k:
        print(':(')
        exit()

print('Yay')


Fixed code:
import itertools
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
k = int(input())
for v in itertools.combinations([a,b,c,d,e], 2):
    if v[1]-v[0] > 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-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:
  prit(':(')


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

a_e = e-a

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


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:
l=[]
for i in range(5):l.append(int(input()))
k=int(input())
c=0
for i in l:
    for j in l:
        if abs(i-j)>k: c+=1
print('yay!' if c==0 else ':(')

Fixed code:
l=[]
for i in range(5):l.append(int(input()))
k=int(input())
c=0
for i in l:
    for j in l:
        if abs(i-j)>k:c+=1
print('Yay!' if c==0 else ':(')
Buggy code:
antennas = [int(input()) for _ in range(5)]
k = int(input())

ok = True
for i in range(4):
    left = antennas[i]
    for a in antennas[i+1:]:
        if left - a > k:
            ok = False
            break
    if not ok:
        break

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


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

ok = True
for i in range(4):
    left = antennas[i]
    for a in antennas[i+1:]:
        if a - left > k:
            ok = False
            break
    if not ok:
        break

if ok:
    print('Yay!')
else:
    print(':(')
Buggy code:
a = [int(input()) for i in range(5)]
b = int(input())
c = sorted(a)

if c[5]-c[0]<=b:
  print("Yay!")
else:
  print(":(")

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

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




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