Random Points

아직 제출이 없습니다시간 제한5초메모리 제한512 MB

문제

Bobo found nn points on the plane. He randomly picks a subset of points (each subset has equal probability to be picked), and would like to know the expectation of the size of convex hull.

Note that the convex hull should not contain two duplicate points or three collinear points.

입력

The first line contains an integer nn (1n20001 \leq n \leq 2000).

Each of following nn lines contains 22 integers x_i,y_ix\_i, y\_i which denotes a point (x_i,y_i)(x\_i, y\_i) (0x_i,y_i1090 \leq x\_i, y\_i \leq 10^9).

출력

If the expectation is EE, a single integer denotes E2nmod(109+7)E \cdot 2^n \bmod (10^9+7).