Codeforces Round 1087 Solution Discussion (finished)