a=[] a=input().split() if int(a[0])%2==0 and int(a[2])%2==0 and int(a[4])%2==0: print(":-)") else: print(":-(")