using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var e = new bool[3]; e[0] = int.Parse(line[0]) % 2 == 0; e[1] = int.Parse(line[2]) % 2 == 0; e[2] = int.Parse(line[4]) % 2 == 0; var count = 0; for (int i = 0; i < 3; i++) if (e[i]) count++; if (count == 1 | count == 3) Console.WriteLine(":-)"); else Console.WriteLine(":-("); } }