a = int(eval(input()))

b = int(eval(input()))

c = int(eval(input()))

d = int(eval(input()))

e = int(eval(input()))

k = int(eval(input()))



ab = b - a

ac = c - a

ad = d - a

ae = e - a

bc = c - b

bd = d - b

be = e - b

cd = d - c

ce = e - c

de = e - d



if ab <= k and ac <= k and ad <= k and ae <= k and bc <= k and bd <= k and be <= k and cd <= k and ce <= k and de <= k:

    print('Yay!')

else:

    print(':(')
N = 5

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

k = int(eval(input()))



for i in range(N):

    for j in range(N):

        if k < abs(a2e[i] - a2e[j]):

            print(':(')

            exit()



print('Yay!')

a = int(eval(input()))
b = int(eval(input()))
c = int(eval(input()))
d = int(eval(input()))
e = int(eval(input()))
k = int(eval(input()))
ab = b - a
ac = c - a
ad = d - a
ae = e - a
bc = c - b
bd = d - b
be = e - b
cd = d - c
ce = e - c
de = e - d
if (
    ab <= k
    and ac <= k
    and ad <= k
    and ae <= k
    and bc <= k
    and bd <= k
    and be <= k
    and cd <= k
    and ce <= k
    and de <= k
):
    print("Yay!")
else:
    print(":(")

N = 5
a2e = [int(eval(input())) for _ in range(N)]
k = int(eval(input()))
for i in range(N):
    for j in range(N):
        if k < abs(a2e[i] - a2e[j]):
            print(":(")
            exit()
print("Yay!")

-a = int(eval(input())) -b = int(eval(input())) -c = int(eval(input())) -d = int(eval(input())) -e = int(eval(input())) +N = 5 +a2e = [int(eval(input())) for _ in range(N)] -ab = b - a -ac = c - a -ad = d - a -ae = e - a -bc = c - b -bd = d - b -be = e - b -cd = d - c -ce = e - c -de = e - d -if ( -    ab <= k -    and ac <= k -    and ad <= k -    and ae <= k -    and bc <= k -    and bd <= k -    and be <= k -    and cd <= k -    and ce <= k -    and de <= k -): -    print("Yay!") -else: -    print(":(") +for i in range(N): +    for j in range(N): +        if k < abs(a2e[i] - a2e[j]): +            print(":(") +            exit() +print("Yay!")