#include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
int main()
{
int n;
cin>>n;
vector<pair<int,int> > v;
for (int i=0; i<n; i++)
{
int x,y;
cin>>x>>y;
v.pb(mp(x,y));
}
int count=0;
for (int i=0; i<v.size(); i++)
{
for (int j=i+1; j<v.size(); j++)
{
for (int k=j+1; k<v.size(); k++)
{
int area=v[i].first*(v[j].second-v[k].second)+v[j].first*(v[k].second-v[i].second)+v[k].first*(v[i].second-v[j].second);
if (area!=0)
++count;
}
}
}
cout<<count<<endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiNkZWZpbmUgbXAgbWFrZV9wYWlyCiNkZWZpbmUgcGIgcHVzaF9iYWNrCmludCBtYWluKCkKewoJaW50IG47CgljaW4+Pm47Cgl2ZWN0b3I8cGFpcjxpbnQsaW50PiA+IHY7Cglmb3IgKGludCBpPTA7IGk8bjsgaSsrKQoJewoJCWludCB4LHk7CgkJY2luPj54Pj55OwoJCXYucGIobXAoeCx5KSk7Cgl9CglpbnQgY291bnQ9MDsKCWZvciAoaW50IGk9MDsgaTx2LnNpemUoKTsgaSsrKQoJewoJCWZvciAoaW50IGo9aSsxOyBqPHYuc2l6ZSgpOyBqKyspCgkJewoJCQlmb3IgKGludCBrPWorMTsgazx2LnNpemUoKTsgaysrKQoJCQl7CgkJCQlpbnQgYXJlYT12W2ldLmZpcnN0Kih2W2pdLnNlY29uZC12W2tdLnNlY29uZCkrdltqXS5maXJzdCoodltrXS5zZWNvbmQtdltpXS5zZWNvbmQpK3Zba10uZmlyc3QqKHZbaV0uc2Vjb25kLXZbal0uc2Vjb25kKTsKCQkJCWlmIChhcmVhIT0wKQoJCQkJCSsrY291bnQ7CgkJCX0KCQl9Cgl9Cgljb3V0PDxjb3VudDw8ZW5kbDsKCXJldHVybiAwOwp9