Rosetta Problems

Chaotic Polygons

https://atcoder.jp/contests/arc037/tasks/arc037_d