#include <bits/stdc++.h>
using namespace std;
void use_cio() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
}
template <typename... Args>
void dbg(Args... args) {
  ((cout << args << " "), ...);
  cout << endl;
}
int n;
int a[200010];
int main() {
  use_cio();
  cin >> n;
  for (int i = 0; i < (n * 2); i++) cin >> a[i];
  sort(a, a + n * 2);
  long long ans = 1LL * (a[n - 1] - a[0]) * (a[2 * n - 1] - a[n]);
  for (int i = (n); i < (2 * n - 1); i++) {
    ans = min(ans, 1LL * (a[i] - a[0]) * (a[2 * n - 1] - a[n - 1]));
  }
  for (int i = 1; i + n - 1 < 2 * n - 1; i++) {
    ans = min(ans, 1LL * (a[2 * n - 1] - a[0]) * (a[i + n - 1] - a[i]));
  }
  cout << ans;
}
