a = list(map(int,input().split())) key = a[0]**a[1]+a[2]**a[3]+a[4]**a[5] if k%2==0: print(":-)") else: print(":-(")