Codeforces Round 1124 (Div. 1, Div. 2) Upsolving (finished)