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