#include <bits/stdc++.h>
using namespace std;
ifstream in("input.txt");
ofstream out("output.txt");
const long long MAXL = 1e18 + 19;
const int MAXN = 1e9 + 7;
const double eps = 1e-7;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  srand(time(NULL));
  int n;
  cin >> n;
  vector<long long> v(2 * n);
  for (int i = 0; i < 2 * n; ++i) {
    cin >> v[i];
  }
  sort(v.begin(), v.end());
  long long ans = (v[n - 1] - v[0]) * (v.back() - v[n]);
  int less = 0;
  for (int i = n; i < 2 * n - 1; ++i) {
    less++;
    ans = min((v[i] - v[0]) * (v.back() - v[n - less]), ans);
  }
  for (int i = 1; i < n; ++i) {
    ans = min(ans, (v.back() - v[0]) * (v[i + n - 1] - v[i]));
  }
  cout << ans << "\n";
  return 0;
}
