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