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