Bessie has N (3≤N≤40) favorite distinct points on a 2D grid, no three of which are collinear. For each 1≤i≤N, the i-th point is denoted by two integers x_i and y_i (0≤x_i,y_i≤104).
Bessie draws some segments between the points as follows.
Bessie notices that for each i, she drew exactly three new segments. Compute the number of permutations Bessie could have chosen on step 1 that would satisfy this property, modulo 109+7.
The first line contains N.
Followed by N lines, each containing two space-separated integers x_i and y_i.
The number of permutations modulo 109+7.