#include <bits/stdc++.h>
using namespace std;
void logf(istream_iterator<string> it) {}
template <typename T, typename... Args>
void logf(istream_iterator<string> it, T a, Args... args) {
  cout << *it << "=" << a << " ";
  logf(++it, args...);
}
const double PI = acos(-1);
const int INF = 1e9;
void solve() {
  int n;
  cin >> n;
  ;
  vector<long long> a(n * 2);
  for (int i = 0; i < int(n * 2); i++) {
    cin >> a[i];
  };
  sort(a.begin(), a.end());
  long long ans = (a.back() - a[n]) * (a[n - 1] - a[0]);
  for (int i = 1; i < n; i++) {
    long long diff = a[i + n - 1] - a[i];
    ans = min(ans, diff * (a.back() - a[0]));
  }
  cout << ans << endl;
}
int main() {
  cin.tie(nullptr);
  std::ios::sync_with_stdio(false);
  solve();
}
