#include <bits/stdc++.h>
using namespace std;
long long arr[500005];
long long n, k;
int32_t main() {
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) cin >> arr[i];
  sort(arr, arr + n);
  long long ans = n;
  long long p = n / 2;
  for (long long i = 0; i < n / 2; i++) {
    while (1) {
      if (2 * arr[i] <= arr[p]) {
        ans--;
        p++;
        break;
      } else {
        p++;
        if (p == n) break;
      }
    }
    if (p == n) break;
  }
  cout << ans << endl;
}
