#include <bits/stdc++.h>
using namespace std;
const int dx[] = {0, -1, 0, 1};
const int dy[] = {-1, 0, 1, 0};
int n, a[500009], cnt;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  cnt = n;
  for (int i = n / 2, j = 0; i < n; i++)
    if (j < n / 2 && a[i] >= a[j] * 2) cnt--, j++;
  cout << cnt;
}
