# Read the input values A1, B1, A2, B2, A3, B3 = map(int, input().split()) # Check each A_i for parity and count the number of odd bases count = 0 if A1 % 2 != 0: count += 1 if A2 % 2 != 0: count += 1 if A3 % 2 != 0: count += 1 # Determine if the count of odd bases is even if count % 2 == 0: print(":-)") else: print(":-(")