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