#include <bits/stdc++.h>
using namespace std;
const long long int MAX = 9187201950435737471;
const long long int INF = 1e6;
const double pi = acos(-1);
const int N = 300155;
const long long mod = 1000000007;
const int M = 2147483647;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  n *= 2;
  long long int A[n + 1];
  for (int i = 1; i <= n; i++) cin >> A[i];
  sort(A + 1, A + 1 + n);
  int Left = 2, Right = n / 2 + 1;
  long long int Ans = (A[n / 2] - A[1]) * (A[n] - A[n / 2 + 1]);
  while (Right <= n) {
    Ans = min(Ans, (A[Right] - A[Left]) * (A[n] - A[1]));
    Right++;
    Left++;
  }
  cout << Ans;
  return 0;
}
