a, _, b, _, c, _ = map(int, input().split()) print([':-(', ':-)'][(a + b + c) % 2 == 0])