#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n, n2;
  long long ans;
  cin >> n;
  n2 = n * 2;
  vector<long long> v(n2);
  for (int i = 0; i < n2; i++) cin >> v[i];
  sort(v.begin(), v.end());
  ans = (v[n - 1] - v[0]) * (v[n2 - 1] - v[n]);
  for (int i = 1; i < n; i++)
    ans = min(ans, (v[i + n - 1] - v[i]) * (v[n2 - 1] - v[0]));
  cout << ans;
  return 0;
}
