v = []

e = ''

for i in range(6):

    v.append(int(eval(input())))



for i in range(len(v)) :

    for j in range(i+1, len(v)):

        if(abs(v[i] - v[j]) > v[-1]):

            e = ':('



if e != '':

    print(e)

else:

    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()))

sub=[]

sub.append(b-a)

sub.append(c-a)

sub.append(d-a)

sub.append(e-a)

sub.append(c-b)

sub.append(d-b)

sub.append(e-b)

sub.append(d-c)

sub.append(e-c)

sub.append(e-d)

max=max(sub)

if max<=k:

    print('Yay!')

else:

    print(':(')
v = []
e = ""
for i in range(6):
    v.append(int(eval(input())))
for i in range(len(v)):
    for j in range(i + 1, len(v)):
        if abs(v[i] - v[j]) > v[-1]:
            e = ":("
if e != "":
    print(e)
else:
    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()))
sub = []
sub.append(b - a)
sub.append(c - a)
sub.append(d - a)
sub.append(e - a)
sub.append(c - b)
sub.append(d - b)
sub.append(e - b)
sub.append(d - c)
sub.append(e - c)
sub.append(e - d)
max = max(sub)
if max <= k:
    print("Yay!")
else:
    print(":(")

-v = [] -e = "" -for i in range(6): -    v.append(int(eval(input()))) -for i in range(len(v)): -    for j in range(i + 1, len(v)): -        if abs(v[i] - v[j]) > v[-1]: -            e = ":(" -if e != "": -    print(e) +a = int(eval(input())) +b = int(eval(input())) +c = int(eval(input())) +d = int(eval(input())) +e = int(eval(input())) +k = int(eval(input())) +sub = [] +sub.append(b - a) +sub.append(c - a) +sub.append(d - a) +sub.append(e - a) +sub.append(c - b) +sub.append(d - b) +sub.append(e - b) +sub.append(d - c) +sub.append(e - c) +sub.append(e - d) +max = max(sub) +if max <= k: +    print("Yay!") -    print("Yay!") +    print(":(")