#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false), cin.tie(nullptr);
  int_fast64_t n;
  cin >> n;
  vector<int_fast64_t> v;
  copy_n(istream_iterator<int_fast64_t>(cin), 2 * n, back_inserter(v));
  sort(v.begin(), v.end());
  int_fast64_t a = (v[n - 1] - v[0]) * (v[2 * n - 1] - v[n]);
  for (int_fast64_t i = 1; i < n; ++i) {
    a = min(a, (v[i + n - 1] - v[i + 0]) * (v[2 * n - 1] - v[0]));
  }
  cout << a << '\n';
}
