a=list(map(int,input().split()))[::2] for i in range(3): for j in range(1,3): if i%2==0 and j%2==1 or i%2==1 and j%2==0: print(":-(") break else: continue break else: print(":-)")