#include <bits/stdc++.h>
using namespace std;
long long i, j, k, l, n, m, a[200007], s, s1, x;
int main() {
  cin >> n;
  for (i = 1; i <= 2 * n; i++) cin >> a[i];
  sort(a + 1, a + 2 * n + 1);
  s = (a[n] - a[1]) * (a[2 * n] - a[n + 1]);
  for (i = n + 1; i < 2 * n; i++)
    s = min(s, (a[2 * n] - a[1]) * (a[i] - a[i - n + 1]));
  cout << s;
}
