n = gets.chomp.split(" ") i = 0 sum = 0 while i <= n.length sum += n[i].to_i^n[i + 1].to_i i += 2 end if sum % 2 == 0 print ":-)" else print ":-(" end