num_a = 5

antennas = [int(eval(input())) for _ in range(num_a)]

k = int(eval(input()))

exist = False

for q in range(num_a - 1, 0, -1):

    for p in range(q - 1, -1, -1):

        if antennas[q] - antennas[p] > k:

            exist = True

            break



if exist:

    print(":(")

else:

    print("Yay!")

N = 5

inputs = [int(eval(input())) for _ in range(N)]

k = int(eval(input()))

print((":(" if inputs[N-1] - inputs[0] > k else "Yay!"))

num_a = 5
antennas = [int(eval(input())) for _ in range(num_a)]
k = int(eval(input()))
exist = False
for q in range(num_a - 1, 0, -1):
    for p in range(q - 1, -1, -1):
        if antennas[q] - antennas[p] > k:
            exist = True
            break
if exist:
    print(":(")
else:
    print("Yay!")

N = 5
inputs = [int(eval(input())) for _ in range(N)]
k = int(eval(input()))
print((":(" if inputs[N - 1] - inputs[0] > k else "Yay!"))

-num_a = 5 -antennas = [int(eval(input())) for _ in range(num_a)] +N = 5 +inputs = [int(eval(input())) for _ in range(N)] -exist = False -for q in range(num_a - 1, 0, -1): -    for p in range(q - 1, -1, -1): -        if antennas[q] - antennas[p] > k: -            exist = True -            break -if exist: -    print(":(") -else: -    print("Yay!") +print((":(" if inputs[N - 1] - inputs[0] > k else "Yay!"))