*L, = map(int, input().split()) print([":-(", ":-)"][sum(l for l in L[::2]) % 2 == 0])