#include <bits/stdc++.h>
using namespace std;
long long int a[200005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (__typeof((2 * n)) i = (0); i < (2 * n); i += 1) {
    cin >> a[i];
  }
  sort(a, a + 2 * n);
  long long int area = (a[n - 1] - a[0]) * (a[2 * n - 1] - a[n]);
  for (__typeof((n)) i = (1); i < (n); i += 1) {
    long long int temp = (a[i + n - 1] - a[i]) * (a[2 * n - 1] - a[0]);
    if (temp < area) {
      area = temp;
    }
  }
  cout << area;
}
