#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long n;
  cin >> n;
  long long a[2 * n];
  for (long long i = 0; i < 2 * n; i++) cin >> a[i];
  sort(a, a + 2 * n);
  long long ans = INT_MAX;
  long long f = a[n - 1] - a[0];
  long long s = a[2 * n - 1] - a[n];
  ans = f * s;
  for (long long i = 1; i < n; i++) {
    f = a[i + n - 1] - a[i];
    s = a[2 * n - 1] - a[0];
    if (f * s < ans) ans = f * s;
  }
  cout << ans;
  return 0;
}
