#include <bits/stdc++.h>
using namespace std;
const int MaxN = (int)2e5;
const double eps = (double)1e-9;
bool used[(int)5e5 + 99];
int a[(int)5e5 + 99];
int main() {
  srand(time(NULL));
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  sort(a + 1, a + n + 1);
  for (int i = 1; i <= n / 2; i++) {
    int x = a[i];
    int l = 0;
    int r = n;
    while (r - l > 1) {
      int mid = (l + r) / 2;
      if (a[mid] >= x * 2 && !used[mid]) {
        r = mid;
      } else {
        l = mid;
      }
    }
    if (a[r] < x * 2 || used[r]) {
      break;
    }
    used[r] = true;
  }
  long long ans1 = 0, ans2 = 0;
  for (int i = 1; i <= n; i++) {
    ans2 += used[i];
  }
  cout << n - ans2;
  return 0;
}
