#include <bits/stdc++.h>
using namespace std;
int get() {
  char ch;
  while (ch = getchar(), (ch < '0' || ch > '9') && ch != '-')
    ;
  if (ch == '-') {
    int s = 0;
    while (ch = getchar(), ch >= '0' && ch <= '9') s = s * 10 + ch - '0';
    return -s;
  }
  int s = ch - '0';
  while (ch = getchar(), ch >= '0' && ch <= '9') s = s * 10 + ch - '0';
  return s;
}
const int N = 1e5 + 5;
int n;
int a[N * 2];
int main() {
  n = get();
  for (int i = 1; i <= n * 2; i++) a[i] = get();
  sort(a + 1, a + 1 + n * 2);
  long long ans = 1ll * (a[n] - a[1]) * (a[n * 2] - a[n + 1]);
  for (int i = n + 1; i <= n * 2 - 1; i++) {
    int w = i - n;
    int low = a[i - w];
    long long tmp = 1ll * (a[i] - a[1]) * (a[n * 2] - low);
    if (tmp < ans) ans = tmp;
  }
  for (int i = 2; i <= n; i++) {
    long long tmp = 1ll * (a[i + n - 1] - a[i]) * (a[n * 2] - a[1]);
    if (tmp < ans) ans = tmp;
  }
  cout << ans << endl;
  return 0;
}
