import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner in = new Scanner(System.in); int sum = 0; for(int i=0; i<3; i++){ double N = in.nextDouble(); double M = in.nextDouble(); int L = (int)Math.pow(N, M); sum += L; } if(solve(sum)){ System.out.println("\":-)\""); }else{ System.out.println("\":-(\""); } } static boolean solve(int sum){ if(sum % 2 == 0) return true; return false; } }