Codeforces Round 946 Div. 3 Solutions