using System; using System.Numerics; using System.Collections.Generic; using System.Linq; namespace Tapi { class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(' '); long a1 = long.Parse(input[0]); long b1 = long.Parse(input[1]); long a2 = long.Parse(input[2]); long b2 = long.Parse(input[3]); long a3 = long.Parse(input[4]); long b3 = long.Parse(input[5]); List IsEvn = new List() { a1 % 2 == 0, a2 % 2 == 0, a3 % 2 == 0 }; var oddCnt = IsEvn.Where(x => x == false).Count(); if (oddCnt == 1 || oddCnt == 3) { Console.WriteLine(":-("); } else { Console.WriteLine(":-)"); } } } }