#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
int main() {
  int n;
  cin >> n;
  vector<int> arr;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    arr.push_back(a);
  }
  sort(arr.begin(), arr.end());
  int k = 0;
  for (int i = (n + 1) / 2; i < n; i++) {
    if (arr[i] >= 2 * arr[k]) k++;
  }
  cout << n - k;
}
