{"raw_statement":[{"iden":"problem statement","content":"On the $xy$\\-plane, We have $N$ points numbered $1$ to $N$. Point $i$ is at $(x_i, y_i)$, and the $x$\\-coordinates of the $N$ points are pairwise different.\nFind the number of pairs of integers $(i, j)\\ (i < j)$ that satisfy the following condition:\n\n*   The line passing through Point $i$ and Point $j$ has a slope between $-1$ and $1$ (inclusive)."},{"iden":"constraints","content":"*   All values in input are integers.\n*   $1 \\le N \\le 10^3$\n*   $|x_i|, |y_i| \\le 10^3$\n*   $x_i \\neq x_j$ for $i \\neq j$."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$\n$x_1$ $y_1$\n$\\vdots$\n$x_N$ $y_N$"},{"iden":"sample input 1","content":"3\n0 0\n1 2\n2 1"},{"iden":"sample output 1","content":"2\n\nThe slopes of the lines passing through $(0, 0)$ and $(1, 2)$, passing through $(0, 0)$ and $(2, 1)$, and passing through $(1, 2)$ and $(2, 1)$ are $2$, $\\frac{1}{2}$, and $-1$, respectively."},{"iden":"sample input 2","content":"1\n-691 273"},{"iden":"sample output 2","content":"0"},{"iden":"sample input 3","content":"10\n-31 -35\n8 -36\n22 64\n5 73\n-14 8\n18 -58\n-41 -85\n1 -88\n-21 -85\n-11 82"},{"iden":"sample output 3","content":"11"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}