Given a convex polygon of $n$ points $P_1, P_2, \ldots, P_n$ on a two-dimensional plane, answer $q$ queries, where each query has one of the following types:
The first line contains two integers $n$ and $q$ ($3 \le n \le 10^5$, $1 \le q \le 10^5$) denoting the number of vertices in the given polygon and the number of queries, respectively.
Each of the following $n$ lines contains two integers, $x$ and $y$, denoting a vertex of the polygon.
Each of the following $q$ lines contains one query, which is in one of the following formats:
1 $x$ $y$", asking to calculate the number of pairs $(P_i, P_j)$ such that $1 \le i < j \le n$ and the three points $(x, y)$, $P_i$, and $P_j$ are collinear.2 $x_1$ $y_1$ $x_2$ $y_2$", asking to calculate the number of points $P_i$ such that $1 \le i \le n$ and the three points $(x_1, y_1)$, $(x_2, y_2)$, and $P_i$ are collinear.It is guaranteed that:
For each query, output a line containing a single integer: the answer to the query.