a,b,c,d,e,f = gets.split.map(&:to_i) puts ((a % 2) + (c % 2) + (e % 2)) % 2 == 0 ? ":-)" : ":-("