Contest announcement here: https://codeforces.me/blog/entry/127147
I am very awful at explaining things, so if you would please give me feedback on how to not be stupid when I write this or help me fix mistakes.
Thank you to the setters for the contest!