Codeforces Round #629 (Div. 3) C. Ternary XOR

NoSuchKey