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