Good day, friends!
Today another Codeforces round for Div2 participants will be. As the last Div2 only round, this round has been prepared by a team of three people: NALP, Polichka and Gerald. Traditionally, we express our gratitude for their help to Artem Rakhov (RAD), Maria Belova(Delinur) and Mike Mirzayanov (MikeMirzayanov).
Score distribution: 500-1000-1500-2000-2500
Good luck and have fun of solving problems! :)
UPD: Problem analysis