#include <bits/stdc++.h>
using namespace std;
long long n, a[201000], area = (long long)1e19;
signed main() {
  scanf("%I64d", &n);
  for (long long i = 1; i <= 2 * n; i++) scanf("%I64d", &a[i]);
  sort(a + 1, a + 2 * n + 1);
  for (long long i = 1; i <= n; i++)
    area = min(area, (a[2 * n] - a[1]) * (a[n + i - 1] - a[i]));
  area = min(area, (a[2 * n] - a[n + 1]) * (a[n] - a[1]));
  printf("%I64d", area);
  return 0;
}
