A = list(map(int, input().split())) ans = A[0] % 2 + A[2] % 2 + A[4] % 2 if ans % 2 == 0: print (':-)') else: print (':-(')