#include <bits/stdc++.h>
using namespace std;
void printd(const char* format) {}
template <typename T, typename... Targs>
void printd(const char* format, T value, Targs... Fargs) {}
void solve() {
  int n;
  cin >> n;
  int* a = new int[n];
  std::map<int, int> m;
  for (int i = 0; i < n; i++) {
    std::cin >> a[i];
    m[a[i]]++;
  }
  map<int, int>::iterator it;
  for (it = m.begin(); it != m.end(); it++) {
    printd("% %\n", it->first, it->second);
  }
  sort(a, a + n);
  int ck = 1;
  int prevj = 0;
  int pt = n / 2;
  int ans = n;
  for (int i = 0; i < n / 2; i++) {
    while (true) {
      if (a[i] * 2 <= a[pt]) {
        printd("% % % ", a[i], a[pt], pt);
        ans--;
        printd("%\n", ans);
        pt++;
        break;
      } else {
        printd("elser\n");
        pt++;
      }
      if (pt == n) break;
    }
    if (pt == n) break;
  }
  printd("ans ");
  std::cout << ans << '\n';
}
int main(int argc, char const* argv[]) {
  int t;
  t = 1;
  for (int i = 1; i <= t; i++) {
    solve();
  }
}
