#include <bits/stdc++.h>
using namespace std;
struct tri {
  long long a, b, c;
};
struct four {
  long long a, b, c, d;
};
;
long long mas[2000006];
int main() {
  long long a, b, c, d, t, f, q, i, j, sum = 0;
  long long v, u, l, r, k, n, m, x, y, z, h;
  string s, s1, s2, s3;
  cin >> n;
  for (i = 0; i < 2 * n; i++) {
    cin >> mas[i];
  }
  sort(mas, mas + 2 * n);
  long long mmin = (mas[2 * n - 1] - mas[n]) * (mas[n - 1] - mas[0]);
  for (i = 1; i < n; i++) {
    mmin = min(mmin, (mas[i + n - 1] - mas[i]) * (mas[2 * n - 1] - mas[0]));
  }
  cout << mmin;
  return 0;
}
