using System.Numerics; public class Program { public static void Main() { //int num = int.Parse(Console.ReadLine() ?? string.Empty); string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' '); //string str = Console.ReadLine() ?? string.Empty; int count = 0; double a =Math.Pow( int.Parse(str[0]),int.Parse(str[1])); if(a% 2 != 0) { count++; } double b = Math.Pow(int.Parse(str[2]) , int.Parse(str[3])); if (b % 2 != 0) { count++; } double c = Math.Pow(int.Parse(str[4]) , int.Parse(str[5])); if (c % 2 != 0) { count++; } if(count % 2 == 0) { Console.WriteLine(":-)"); } else { Console.WriteLine(":-("); } } }