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