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