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