Codeforces Round 1104 (Div. 1 + Div. 2) Upsolving (finished)