b=True

a=[int(eval(input())) for i in range(5)]

k=int(eval(input()))

for j in range(5):

  for l in range(5):

    if a[j]-a[l] > k:

      b=False

if b:

  print("Yay!")

else:

  print(":(")
antenna = [int(eval(input())) for _ in range(5)]

k = int(eval(input()))



print(("Yay!" if max(antenna) - min(antenna) <= k else ":("))
b = True
a = [int(eval(input())) for i in range(5)]
k = int(eval(input()))
for j in range(5):
    for l in range(5):
        if a[j] - a[l] > k:
            b = False
if b:
    print("Yay!")
else:
    print(":(")

antenna = [int(eval(input())) for _ in range(5)]
k = int(eval(input()))
print(("Yay!" if max(antenna) - min(antenna) <= k else ":("))

-b = True -a = [int(eval(input())) for i in range(5)] +antenna = [int(eval(input())) for _ in range(5)] -for j in range(5): -    for l in range(5): -        if a[j] - a[l] > k: -            b = False -if b: -    print("Yay!") -else: -    print(":(") +print(("Yay!" if max(antenna) - min(antenna) <= k else ":("))