Codeforces Round 1068 (Div. 2) Upsolving (finished)