#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-6;
const double PI = acos(-1);
const int INF = 1e9;
void FAST() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
}
signed main() {
  FAST();
  int n;
  cin >> n;
  vector<long long> a(n + n);
  for (int i = 0; i < n + n; i++) {
    cin >> a[i];
  }
  sort(a.begin(), a.end());
  long long ans = (a[n - 1] - a[0]) * (a[n + n - 1] - a[n]);
  for (int i = 1; i < n; i++) {
    ans = min(ans, (a[n - 1 + i] - a[i]) * (a[n + n - 1] - a[0]));
  }
  cout << ans;
}
