#pragma GCC target("avx2") #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #include using namespace std; const long long MOD = 1000000007; int main(){ int n; cin >> n; vector x(n), y(n); for (int i = 0; i < n; i++){ cin >> x[i] >> y[i]; } long long ans = 0; for (int i = 0; i < n; i++){ for (int j = i + 1; j < n; j++){ for (int k = j + 1; k < n; k++){ ans += abs((x[j] - x[i]) * (y[k] - y[i]) - (x[k] - x[i]) * (y[j] - y[i])); } ans %= MOD; } } if (ans < 0){ ans += MOD; } cout << ans << endl; }