#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, n, ans;
  cin >> n;
  int arr[n + 1];
  for (i = 1; i <= n; i++) {
    cin >> arr[i];
  }
  sort(arr + 1, arr + 1 + n);
  ans = n;
  for (i = n / 2; i >= 1; i--) {
    if (arr[i] * 2 <= arr[ans]) {
      ans--;
    }
  }
  cout << ans;
}
