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