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