ab = list(map(int, input().split())) s = 0 for i in range(0, 6, 2): s ^= ab[i] print(":-(" if s&1 else ":-)")