import java.util.Scanner; public class No892{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); int e = sc.nextInt(); int f = sc.nextInt(); long firstNumber = a^b; long secNumber = c^d; long thirdNumber = e^f; if ((firstNumber+secNumber+thirdNumber)%2 == 0){ System.out.println(":-)"); } else { System.out.println(":-("); } } }