from sys import stdin def main(): #入力 readline=stdin.readline A1,B1,A2,B2,A3,B3=map(int,readline().split()) A=[A1,A2,A3] one=0 for i in range(3): if A[i]==1: one+=1 if one==1 or one==3: print(":-(") else: print(":-)") if __name__=="__main__": main()