#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n;
  cin >> n;
  int arr[n + 1], freq[1000000] = {0};
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
    freq[arr[i]]++;
  }
  if (n == 1) {
    cout << 1 << endl;
    return 0;
  }
  sort(arr, arr + n);
  int pm, pl = (n / 2), kag = 0;
  for (int i = 0; ((i < n / 2) && (pl < n)); ++i) {
    if ((2 * arr[i]) > (arr[pl])) {
      while ((2 * arr[i]) > (arr[pl]) && (pl < n)) {
        pl++;
      }
    }
    if (pl < n) {
      kag++;
      pl++;
    }
  }
  cout << (n - kag) << endl;
  return 0;
}
