import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int a1 = sc.nextInt(); sc.nextInt(); int a2 = sc.nextInt(); sc.nextInt(); int a3 = sc.nextInt(); sc.nextInt(); sc.close(); int cnt = 0; if (a1 % 2 ==1) cnt++; if (a2 % 2 ==1) cnt++; if (a3 % 2 ==1) cnt++; if (cnt % 2 ==1) { System.out.println(":-("); } else { System.out.println(":-)"); } } }