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