#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define REP(i, N) for (int i = 0; i < (int)N; i++) #define FOR(i, a, b) for (int i = a; i < (int)b; i++) #define ALL(x) (x).begin(), (x).end() using namespace std; template bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; } template bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; } int main() { int N; cin >> N; vector X(N), Y(N); REP(i, N) cin >> X[i] >> Y[i]; int ans = 0; REP(i, N) FOR(j, i + 1, N) { int l = 0, r = 0; REP(k, N) { chmax(l, (X[k] - X[j]) * (Y[i] - Y[j]) - (Y[k] - Y[j]) * (X[i] - X[j])); chmax(r, (X[k] - X[i]) * (Y[j] - Y[i]) - (Y[k] - Y[i]) * (X[j] - X[i])); } chmax(ans, l + r); } cout << ans << endl; return 0; }