n = gets.chop.to_i
target = n[0...n.size - 1]
k = n.last
output = ''

n.each_with_index do |n, i|
  break if i == target.size
  output = ':(' if (target[i + 1] - n).abs > k
end

output = 'Yay!' if output.empty?
puts output