a, b, c, d, e, f = map(int, input().split()) if (a + c + e) % 2: print(':-(') else: print(':-)')