using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace YukiCoder { public class Program { public static void Main(string[] args) { new Program().Solve(); } public void Solve() { int[] AB = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray(); if (AB[0] % 2 == 0 && AB[2] % 2 == 0 && AB[4] % 2 == 0) { WriteLine(":-)"); } else { WriteLine(":-("); } } } }