#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.precision(20);
  int n;
  cin >> n;
  vector<long long> c(2 * n);
  for (int i = 0; i < 2 * n; i++) cin >> c[i];
  sort(c.begin(), c.end());
  long long area = LLONG_MAX;
  for (int i = 0; i < n; i++) {
    long long x = c[n + i - 1] - c[i], y;
    if (i == 0)
      y = c[2 * n - 1] - c[n];
    else
      y = c[2 * n - 1] - c[0];
    area = min(area, x * y);
  }
  cout << area << endl;
  return 0;
}
