a1, b1, a2, b2, a3, b3 = gets.chomp.split.map &:to_i sum = a1 + a2 + a3 puts sum.even? ? ":-)" : ":-("