#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  vector<long long> a(2 * n);
  for (long long i = 0; i < 2 * n; ++i) {
    cin >> a[i];
  }
  sort(a.begin(), a.end());
  long long mx = (a[n - 1] - a[0]) * (a[2 * n - 1] - a[n]);
  for (long long i = 1; i < n; ++i) {
    long long j = i + n - 1;
    long long k = (a[j] - a[i]) * (a[2 * n - 1] - a[0]);
    mx = min(mx, k);
  }
  cout << mx;
}
