A1, B1, A2, B2, A3, B3 = map(int, input().split()) calc = A1**B1 + A2**B2 + A3**B3 if calc % 2 == 0: print(':-)') else: print(':-(')