#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  long long a[2 * n + 2];
  for (int i = 0; i < 2 * n; ++i) cin >> a[i];
  sort(a, a + 2 * n);
  multiset<long long> s1, s2;
  for (int i = 0; i < n; ++i) s1.insert(a[i]);
  for (int i = n; i < 2 * n; ++i) s2.insert(a[i]);
  long long ans = (a[n - 1] - a[0]) * (a[2 * n - 1] - a[n]);
  multiset<long long>::iterator it, iq;
  long long b = a[2 * n - 1] - a[0];
  for (int i = 0; i < n - 1; ++i) {
    long long l = a[i + n] - a[i + 1];
    ans = min(ans, l * b);
  }
  cout << ans << "\n";
}
