#include <bits/stdc++.h>
using namespace std;
const int N = 5e5;
int a[N + 10];
int main() {
  int n, ans;
  cin >> n, ans = n;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int j = 0;
  for (int i = (n + 1) / 2; i < n; i++)
    if (a[j] * 2 <= a[i]) ans--, j++;
  cout << ans;
  return 0;
}
