A = gets.split.map(&:to_i) .each_slice(2).map{|a,b| a.even? ? 0 : 1 } .inject(&:+) puts A.even? ? ':-)' : ':-('