input = readlines.map &:chomp

limit = input[5]

number_list = []

[*(0..4)].each do |number|
  number_list.push(input[number])
end 

mox= number_list.max
min = number_list.min

if (max - min) > limit 
  puts ':('
else 
  puts 'Yay!'
end 