a = [int(i) for i in input().split()] if not (a[0]+a[2]+a[4]) & 1: print(":-)") else: print(":-(")