#include <bits/stdc++.h>
using namespace std;
inline long long read() {
  long long x = 0;
  char zf = 1;
  char ch = getchar();
  while (ch != '-' && !isdigit(ch)) ch = getchar();
  if (ch == '-') zf = -1, ch = getchar();
  while (isdigit(ch)) x = x * 10 + ch - '0', ch = getchar();
  return x * zf;
}
void write(long long y) {
  if (y < 0) putchar('-'), y = -y;
  if (y > 9) write(y / 10);
  putchar(y % 10 + 48);
}
void writeln(const long long y) {
  write(y);
  putchar('\n');
}
int i, j, k, m, n, x, y, z, cnt;
long long a[200010];
int main() {
  n = read() * 2;
  for (register int i = 1; i <= n; i++) a[i] = read();
  sort(a + 1, a + n + 1);
  long long ans = (a[n / 2] - a[1]) * (a[n] - a[n / 2 + 1]);
  for (register int i = n / 2; i <= n; i++)
    ans = min(ans, (a[n] - a[1]) * (a[i] - a[i - (n / 2) + 1]));
  cout << ans;
  return 0;
}
