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