#include <bits/stdc++.h>
using namespace std;
const long long inf = 2000000000000000000;
const double pi = acos(-1.0);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long kol_vo;
  cin >> kol_vo;
  vector<long long> v(kol_vo * 2);
  for (long long c = 0; c < kol_vo * 2; c++) cin >> v[c];
  if (kol_vo == 1) {
    cout << 0;
    return 0;
  }
  long long mmin = inf;
  sort(v.begin(), v.end());
  for (long long l = 0; l <= kol_vo; l++) {
    if (l == 0)
      mmin = min(mmin, (v[l + kol_vo - 1] - v[l]) *
                           (v[kol_vo * 2 - 1] - v[l + kol_vo]));
    else
      mmin = min(mmin, (v[l + kol_vo - 1] - v[l]) * (v[kol_vo * 2 - 1] - v[0]));
  }
  cout << mmin;
  return 0;
}
