//#define _GLIBCXX_DEBUG #include #define FOR(i,a,b) for(ll i=a;i=b;i--) #define per(i,a) ROF(i,a,0) #define pb push_back using namespace std; using ll=long long; using ld=long double; using ch=char; typedef pair P; typedef vector vl; typedef vector vvl; typedef vector

vP; typedef vector vc; typedef vector vvc; const ll MOD=1000000007; const ll MOD2=998244353; const ld PI=acos(-1); const ll INF=1e18; struct edge{ll to,cost;}; struct edge2{ll from,to,cost;}; template bool chmax(T &a, const T& b) { if (a < b) { a = b; return true; } return false; } template bool chmin(T &a, const T& b) { if (a > b) { a = b; return true; } return false; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll n; cin >> n; vl x(n),y(n); rep(i,n){ cin >> x[i] >> y[i]; } ll ans=0; rep(i,n-2){ FOR(j,i+1,n-1){ FOR(k,j+1,n){ ans+=abs((x[j]-x[i])*(y[k]-y[i])-(x[k]-x[i])*(y[j]-y[i])); if(ans>=MOD){ ans%=MOD; } } } } cout << ans << endl; }