Grand Prix of Saratov
Let's discuss problems. How to solve F?
Codeforces Round 946 Solution Discussion