Ari在地板上画了一个规则的凸形多边形,并按顺时针顺序给它的顶点编号1,2,...,n。然后从顶点1开始,她向其他每个顶点的方向画一条射线。当射线到达一个顶点或与之前画的另一条射线相交时就停止。Ari对顶点2,3,...,n重复这个过程(按这个特定顺序)。然后她在多边形内的每个区域放一个核桃。
松鼠Ada想收集所有的核桃,但她不能踩到阿里画的线。这意味着Ada如果想从一个区域跳到另一个区域,就必须进行一次小跳。Ada可以从一个区域P跳到另一个区域Q,当且仅当P和Q共享一个边或一个角。
假设Ada从图外开始,为了收集所有的核桃,她最少要跳多少次?
Ari the monster always wakes up very early with the first ray of the sun and the first thing she does is feeding her squirrel.
Ari draws a regular convex polygon on the floor and numbers it's vertices
1,2,...,n in clockwise order. Then starting from the vertex
1 she draws a ray in the direction of each other vertex. The ray stops when it reaches a vertex or intersects with another ray drawn before. Ari repeats this process for vertex
2,3,...,n (in this particular order). And then she puts a walnut in each region inside the polygon.
Ada the squirrel wants to collect all the walnuts, but she is not allowed to step on the lines drawn by Ari. That means Ada have to perform a small jump if she wants to go from one region to another. Ada can jump from one region P to another region Q if and only if P and Q
share a side or a corner.
Assuming that Ada starts from outside of the picture, what is the minimum number of jumps she has to perform in order to collect all the walnuts?
Output
Print the minimum number of jumps Ada should make to collect all the walnuts. Note, that she
doesn't need to leave the polygon after.