def Main(): a=list(map(int,input().split())) if (a[0]+a[2]+a[4])%2: print(":-(") else: print(":-)") Main()