#include <bits/stdc++.h>
int main() {
  std::ios_base::sync_with_stdio(0);
  std::cin.tie(0);
  std::cout.tie(0);
  std::vector<int> coor;
  int n;
  std::cin >> n;
  for (int i = 0; i < n * 2; i++) {
    int tp;
    std::cin >> tp;
    coor.push_back(tp);
  }
  std::sort(coor.begin(), coor.end());
  long long ans = 0x3f3f3f3f3f3f3f3f;
  for (int i = 1; i < n; i++) {
    ans = std::min(ans, (long long)coor[i + n - 1] - coor[i]);
  }
  ans = std::min(
      ans * (coor[2 * n - 1] - coor[0]),
      (long long)(coor[n - 1] - coor[0]) * (coor[n * 2 - 1] - coor[n]));
  std::cout << ans << std::endl;
  return 0;
}
