#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, arr[500005];
  while (cin >> n) {
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
    }
    sort(arr, arr + n);
    int in = n / 2;
    int cnt = 0;
    for (int i = 0; i < n / 2; i++) {
      while (in < n) {
        if ((arr[i] * 2) <= arr[in]) {
          cnt++;
          in++;
          break;
        }
        in++;
      }
    }
    cout << n - cnt << endl;
  }
  return 0;
}
