Codeforces Round 1016 (Div 3) — Solution Discussion (finished)