#include <bits/stdc++.h>
using namespace std;
long long n;
long long src[200001];
int main() {
  scanf("%lld", &n);
  for (register int i = 1; i <= n * 2; i++) scanf("%lld", src + i);
  sort(src + 1, src + 2 * n + 1);
  long long minn = (src[n] - src[1]) * (src[n * 2] - src[n + 1]);
  for (register int i = 2; i <= n; i++)
    minn = min(minn, (src[i + n - 1] - src[i]) * (src[2 * n] - src[1]));
  printf("%lld", minn);
  return 0;
}
