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