#include <bits/stdc++.h>
using namespace std;
int a[200100];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  n *= 2;
  for (int i = 0; i < (int)(n); ++i) {
    cin >> a[i];
  }
  sort(a, a + n);
  long long ans = (a[n / 2 - 1] - a[0]) * 1ll * (a[n - 1] - a[n / 2]);
  for (int i = 0; i < (int)(n / 2 - 1); ++i) {
    ans = min(ans, (a[n - 1] - a[0]) * 1ll * (a[i + n / 2] - a[i + 1]));
  }
  cout << ans << endl;
}
