#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-8;
const double PI = 4 * atan2(1, 1);
const double INF = 1e16;
const int N = 2505;
inline int sgn(double x) {
  if (fabs(x) < eps)
    return 0;
  else if (x > 0)
    return 1;
  else
    return -1;
}
inline int cmp(double x, double y) { return sgn(x - y); }
struct Vector {
  double x, y;
  Vector() {}
  Vector(double x, double y) : x(x), y(y) {}
  void read() { scanf("%lf%lf", &x, &y); }
};
Vector operator+(Vector A, Vector B) { return Vector(A.x + B.x, A.y + B.y); }
Vector operator-(Vector A, Vector B) { return Vector(A.x - B.x, A.y - B.y); }
Vector operator*(double k, Vector A) { return Vector(k * A.x, k * A.y); }
Vector operator*(Vector A, double k) { return k * A; }
Vector operator/(Vector A, double k) { return Vector(A.x / k, A.y / k); }
bool operator<(const Vector &A, const Vector &B) {
  return cmp(A.x, B.x) == 0 ? cmp(A.y, B.y) < 0 : cmp(A.x, B.x) < 0;
}
double operator*(Vector A, Vector B) { return A.x * B.x + A.y * B.y; }
double operator^(Vector A, Vector B) { return A.x * B.y - A.y * B.x; }
double Length(Vector A) { return sqrt(A * A); }
bool quad(Vector A) {
  return sgn(A.y) == 1 || (sgn(A.y) == 0 && sgn(A.x) <= 0);
}
bool cmpAngle(const Vector &A, const Vector &B) {
  if (quad(A) != quad(B)) return quad(A) < quad(B);
  return sgn(A ^ B) > 0 || (sgn(A ^ B) == 0 && Length(A) < Length(B));
}
int n, id;
Vector p[N], q[N];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) p[i].read();
  long long ans = 0;
  for (int o = 1; o <= n; o++) {
    id = 0;
    long long res = 1ll * (n - 1) * (n - 2) * (n - 3) * (n - 4) / 24;
    for (int i = 1; i <= n; i++) {
      if (i == o) continue;
      q[++id] = p[i] - p[o];
    }
    sort(q + 1, q + id + 1, cmpAngle);
    for (int i = 1, j = 1; i <= id; i++) {
      while (sgn(q[i] ^ q[j % id + 1]) >= 0 && j % id + 1 != i) {
        j = j % id + 1;
      }
      int cnt = (j - i + id) % id;
      if (cnt > 2) res -= 1ll * cnt * (cnt - 1) * (cnt - 2) / 6;
    }
    ans += res;
  }
  printf("%lld\n", ans);
  return 0;
}
