A too simple week
https://petr-mitrichev.blogspot.com/2018/07/a-too-simple-week.html
Codeforces Round 943 Solution Discussion