#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
long long lcm(long long a, long long b) { return a * (b / gcd(a, b)); }
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n;
  cin >> n;
  int a[n];
  for (long long i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int c = 0;
  for (long long i = 0; i < n; i++) {
    if (a[i] >= 2 * a[c]) c++;
  }
  int res = n - min(n / 2, c);
  cout << res;
}
