#include <bits/stdc++.h>
using namespace std;
inline void read(int &x) {
  x = 0;
  char c = getchar();
  int f = 1;
  while (!isdigit(c)) {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (isdigit(c)) {
    x = x * 10 + c - '0';
    c = getchar();
  }
  x *= f;
}
inline unsigned int R() {
  static unsigned int seed = 416;
  return seed ^= seed >> 5, seed ^= seed << 17, seed ^= seed >> 13;
}
const int N = 533333;
int n, a[N];
int main() {
  read(n);
  for (register int i = 1; i <= n * 2; i++) read(a[i]);
  sort(a + 1, a + n * 2 + 1);
  long long res = 1LL * (a[n] - a[1]) * (a[n + n] - a[n + 1]);
  for (register int i = 1; i <= n; i++)
    res = min(res, 1LL * (a[n + n] - a[1]) * (a[i + n - 1] - a[i]));
  cout << res;
  return 0;
}
