Codeforces Round 1119 (Div. 3) Upsolving