Codeforces Round 1122 (Div. 3) Upsolving