#include <bits/stdc++.h>
using namespace std;
int a[1000000];
int main() {
  int n;
  scanf("%d", &n) != EOF;
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  sort(a, a + n);
  int p = n - 1;
  for (int i = n / 2 - 1; i >= 0; i--)
    if (a[i] * 2 <= a[p]) p--;
  printf("%d\n", p + 1);
  return 0;
}
