let () = Scanf.scanf "%d %d %d %d %d %d\n" @@ fun a b c d e f -> let x1, x2, x3 = a mod 2,c mod 2, e mod 2 in print_endline (if (x1+x2+x3) mod 2 = 0 then ":-)" else ":-(")