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(); if (a1 % 2 == 1 && a2 % 2 == 1 && a3 % 2 == 1) { System.out.println(":-("); } else { System.out.println(":-)"); } } }