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