#include <bits/stdc++.h>
using namespace std;
int n, m;
int a[500050];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  sort(a + 1, a + n + 1);
  int m = n;
  int res = 0;
  for (int i = n / 2; i >= 1; i--) {
    if (a[i] * 2 <= a[m]) {
      m--;
      res++;
    }
  }
  cout << n - res;
  return 0;
}
