Vanya got bored and he painted *n* distinct points on the plane. After that he connected all the points pairwise and saw that as a result many triangles were formed with vertices in the painted points. He asks you to count the number of the formed triangles with the non-zero area.
The first line contains integer *n* (1 ≤ *n* ≤ 2000) — the number of the points painted on the plane. 

Next *n* lines contain two integers each *x*<sub class="lower-index">*i*</sub>, *y*<sub class="lower-index">*i*</sub> ( - 100 ≤ *x*<sub class="lower-index">*i*</sub>, *y*<sub class="lower-index">*i*</sub> ≤ 100) — the coordinates of the *i*-th point. It is guaranteed that no two given points coincide.
class Point:
    def __init__(self, x, y):
        self.x = x
        self.y = y


class Segment:
    def __init__(self, p1, p2):
        self.p1 = p1
        self.p2 = p2

    @property
    def k(self):
        dy = self.p2.y - self.p1.y
        dx = self.p2.x - self.p1.x
        if dx == 0:
            return dy * float('inf')
        return dy / dx

    def __lt__(self, other):
        return self.k < other.k

    def __eq__(self, other):
        return abs(self.k - other.k) < 1e-6


def main():
    n = int(input())

    points = list()

    for _ in range(n):
        x, y = map(int, input().split())
        points.append(Point(x, y))

    segments = list()

    for i in range(n):
        segs = list()
        for j in range(i + 1, n):
            segs.append(Segment(points[i], points[j]))
        segments.append(segs)

    for i in range(n):
        segments[i].sort()

    result = 0

    for i in range(n):
        L = len(segments[i])
        if L < 2:
            continue
        res = L * (L - 1) // 2
        prev_k = segments[i][0].k
        k_counter = 1
        for j in range(1, L):
            if segments[i][j].k == prev_k:
                k_counter += 1
            else:
                res -= k_counter * (k_counter - 1) // 2
                prev_k = segments[i][j].k
                k_counter = 1
        res -= k_counter * (k_counter - 1) // 2
        result += res

    print(result)


main()
