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