#include <bits/stdc++.h>
using namespace std;
const long long INF = (long long)1e18;
const int inf = (int)1e9;
const long long mod = (long long)1e9 + 7;
const double pi = acos(-1.0);
const double eps = (double)1e-9;
const int dx[] = {0, 1, 0, -1};
const int dy[] = {1, 0, -1, 0};
const int N = 300500;
long long n, a[N], ans = 1e18;
map<long long, long long> b;
int main() {
  srand(time(NULL));
  cin.tie(NULL);
  cout.tie(NULL);
  ios_base::sync_with_stdio(false);
  cout << setprecision(10) << fixed;
  cin >> n;
  for (int i = 1; i <= n + n; ++i) {
    cin >> a[i];
    b[a[i]]++;
  }
  sort(a + 1, a + n + n + 1);
  for (int i = 2; i <= n; ++i) {
    ans = min(ans, (a[n + n] - a[1]) * (a[i + n - 1] - a[i]));
  }
  ans = min(ans, (a[n + n] - a[n + 1]) * (a[n] - a[1]));
  cout << ans;
  return 0;
}
