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