CF 106195F - Peter's polygon problem

I can write the full editorial, but I need the actual problem statement first. The Codeforces Gym page for 106195F - Peter's polygon problem does not expose the statement text in the available view, only the title, limits, and samples.

CF 106195F - Peter's polygon problem

Rating: -
Tags: -
Solve time: 25s
Verified: no

Solution

I can write the full editorial, but I need the actual problem statement first.

The Codeforces Gym page for 106195F - Peter's polygon problem does not expose the statement text in the available view, only the title, limits, and samples. The samples alone are not enough to reliably reconstruct the problem, and inventing the missing details would risk producing an incorrect editorial and solution.

Please paste the full statement (including input/output sections and constraints), and I’ll write the complete editorial in the requested format with the algorithm explanation, proof, Python solution, examples, tests, and edge cases.