#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    v.push_back(x);
  }
  sort(v.begin(), v.end());
  int h = 0;
  for (int i = 0; i < n; i++)
    if (i - h > h && v[i] >= 2 * v[h]) h++;
  cout << n - h << endl;
}
