def main(): A1, _, A2, _, A3, _ = map(int, input().split()) if (A1+A2+A3) % 2 == 0: print(":-)") else: print(":-(") if __name__ == "__main__": main()