#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x = 0, f = 1;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    x = x * 10 + c - '0';
    c = getchar();
  }
  return x * f;
}
inline long long readl() {
  long long x = 0, f = 1;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    x = x * 10 + c - '0';
    c = getchar();
  }
  return x * f;
}
inline int power(int a, int b) {
  int ans = 1;
  while (b) {
    if (b & 1) {
      ans = ans * a;
      --b;
    }
    b >>= 1;
    a = a * a;
  }
  return ans;
}
inline int power_mod(int a, int b, int mod) {
  a %= mod;
  int ans = 1;
  while (b) {
    if (b & 1) {
      ans = ans * a % mod;
      --b;
    }
    b >>= 1, a = a * a % mod;
  }
  return ans;
}
long long gcdl(long long a, long long b) { return b == 0 ? a : gcdl(b, a % b); }
long long abssl(long long a) { return a > 0 ? a : -a; }
int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); }
int abss(int a) { return a > 0 ? a : -a; }
inline int read();
inline long long readl();
inline int power(int a, int b);
inline int power_mod(int a, int b, int mod);
long long gcdl(long long a, long long b);
long long abssl(long long a);
int gcd(int a, int b);
int abssl(int a);
long long n, ai[200000 + 5];
int main() {
  cin >> n;
  for (long long i = 1; i <= 2 * n; i++) cin >> ai[i];
  sort(ai + 1, ai + 1 + 2 * n);
  long long ans = 9223372036854775807ll;
  for (long long i = 1; i <= 2 * n; i++) {
    if (i - n + 1 >= 1) {
      long long tmp = ai[i] - ai[i - n + 1];
      if (i - n + 1 == 1) {
        tmp *= ai[2 * n] - ai[i + 1];
      } else
        tmp *= ai[2 * n] - ai[1];
      ans = min(ans, tmp);
    }
  }
  cout << ans;
  return 0;
}
