题号:NC51629
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 512 M,其他语言1024 M
64bit IO Format: %lld
题目描述
Gromah and LZR have entered the sixth level.
There are

pairwise distinct points on the wall, each can be described as
%20%5C%3B(1%5Cle%20i%5Cle%20n))
in a 2-dimensional rectangular coordinate system.
LZR finds a note board saying that four distinct points

form a flower if there exists a point among the four points strictly inside the triangle formed by the other three points, where the triangle should be non-degenerate.
So the password of this level is naturally the number of tuples
(1%20%5Cle%20i%20%3C%20j%20%3C%20k%20%3C%20l%20%5Cle%20n))
that

form a flower.
Please help them to calculate the answer.
输入描述:
The first line contains one positive integer

, denoting the number of points.
Following

lines each contains two integers

, denoting a point.
points are pairwise distinct.
输出描述:
Print a non-negative integer in a single line, denoting the number of flowers.
示例1
输入
复制
8
0 0
0 1
-1 0
0 -1
1 1
1 -1
-1 1
-1 -1