#include <bits/stdc++.h>
using namespace std;
int read() {
  int x = 0, f = 1;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9')
    x = (x << 1) + (x << 3) + (c ^ 48), c = getchar();
  return x * f;
}
int n, a[100010 << 1];
int main() {
  n = read();
  for (int i = 1; i <= n * 2; i++) a[i] = read();
  sort(a + 1, a + n * 2 + 1);
  long long ans = 1ll * (a[n] - a[1]) * (a[n * 2] - a[n + 1]);
  for (int i = 2; i <= n; i++)
    ans = min(ans, 1ll * (a[n * 2] - a[1]) * (a[n + i - 1] - a[i]));
  cout << ans;
  return 0;
}
