#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, t, n;
  int arr[500005];
  cin >> n;
  for (__typeof(0) i = 0; i <= n - 1; i++) cin >> arr[i];
  sort(arr, arr + n);
  int j = n - 1, count = 0;
  for (i = n / 2 - 1; i >= 0; i--) {
    if (arr[i] * 2 <= arr[j]) {
      j--;
      count++;
      arr[i] = -1;
    }
    while (arr[j] == -1 && j >= 0) {
      j--;
      i--;
    }
  }
  cout << n - count;
  return 0;
}
