#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long a[2 * n];
  for (int i = 0; i < 2 * n; i++) cin >> a[i];
  sort(a, a + 2 * n);
  long long mn = (a[n - 1] - a[0]) * (a[2 * n - 1] - a[n]);
  for (int i = 1; i < n; i++) {
    mn = min(mn, (a[2 * n - 1] - a[0]) * (a[n - 1 + i] - a[i]));
  }
  cout << mn;
  return 0;
}
