Number of triangulations

You are given a polygon with nn sides without self-intersections. In how many ways can you triangulate it?

Input

Input consists of several cases with only integer numbers. Each case begins with nn, followed by the nn coordinates xx yy of the vertices given in counterclockwise order. Assume 3n2003 \le n \le 200 and |x|,|y|106\vert x \vert, \vert y \vert \le 10^6. The given polygons are such that no triangulation contains a degenerate triangle.

Output

For every case, print the number of triangulations modulo 109+710^9 + 7.

Problem information

Author: Gerard Orriols

Generation: 2026-01-25T11:18:35.924Z

© Jutge.org, 2006–2026.
https://jutge.org