#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  vector<bool> vis(n, 0);
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a.begin(), a.end());
  auto check = [&](int x) {
    if (x == 0) return true;
    for (int i = 0; i < x; i++) {
      if (2 * a[i] > a[n - x + i]) return false;
    }
    return true;
  };
  int l = 0, r = n / 2;
  while (r - l > 3) {
    int mid = (l + r) / 2;
    if (check(mid))
      l = mid;
    else
      r = mid - 1;
  }
  for (int i = r; i >= l; i--) {
    if (check(i)) {
      cout << n - i;
      exit(0);
    }
  }
  cout << n;
  return 0;
}
