a=[*map(int,input().split())] b=a[1::2] a=a[::2] cnt=0 for i,j in zip(a,b): cnt+=i**j if cnt%2==0: print(':-)') else: print(':-(')