#include <bits/stdc++.h>
using namespace std;
int a[500010];
int n;
void mofile() {
  freopen("inp.txt", "r", stdin);
  freopen("out.txt", "w", stdout);
}
void sort(int l, int h) {
  int i, j, x, tmp;
  i = l;
  j = h;
  x = a[(l + h) / 2];
  do {
    while (a[i] < x) i = i + 1;
    while (a[j] > x) j = j - 1;
    if (i <= j) {
      tmp = a[i];
      a[i] = a[j];
      a[j] = tmp;
      i = i + 1;
      j = j - 1;
    }
  } while (i <= j);
  if (l < j) sort(l, j);
  if (i < h) sort(i, h);
}
void doc() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  sort(1, n);
  for (int i = n / 2; i >= 1; i--) {
    int t = a[i] * 2;
    if (t <= a[n]) {
      n = n - 1;
    }
  }
  cout << n;
}
int main() { doc(); }
