e = [int(eval(input())) for _ in range(5)]

k = int(eval(input()))



bl = True

for ee1 in e:

    for ee2 in e:

        if abs(ee1 - ee2) > k:

            bl = False

            break

    if not bl:

        break

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

v = [int(eval(input())) for _ in range(5)]

k = int(eval(input()))



bl = max(v) - min(v) <= k

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

e = [int(eval(input())) for _ in range(5)]
k = int(eval(input()))
bl = True
for ee1 in e:
    for ee2 in e:
        if abs(ee1 - ee2) > k:
            bl = False
            break
    if not bl:
        break
print(("Yay!" if bl else ":("))

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

-e = [int(eval(input())) for _ in range(5)] +v = [int(eval(input())) for _ in range(5)] -bl = True -for ee1 in e: -    for ee2 in e: -        if abs(ee1 - ee2) > k: -            bl = False -            break -    if not bl: -        break +bl = max(v) - min(v) <= k