import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); int sum = 0; for (int i = 0; i < 3; i++) { sum += sc.nextInt() % 2; sc.nextInt(); } if (sum % 2 == 0) { System.out.println(":-)"); } else { System.out.println(":-("); } } }