#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
const int MAX_N = 100005;
int n;
long long a[2 * MAX_N];
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  for (int i = 0; i < 2 * n; i++) cin >> a[i];
  sort(a, a + 2 * n);
  long long area = (a[n - 1] - a[0]) * (a[2 * n - 1] - a[n]);
  for (int i = 1; i < n; i++)
    area = min(area, (a[i + n - 1] - a[i]) * (a[2 * n - 1] - a[0]));
  cout << area << endl;
}
