l=list(map(int,input().split())) num=0 for i in range(3): num+=l[2*i]**l[2*i+1] if num%2==0: print(':-)') else: print(':-(')