#include <bits/stdc++.h>
using namespace std;
int num[500010];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &num[i]);
  sort(num + 1, num + n + 1);
  int half = n / 2;
  int ans = n;
  for (int i = 1, j = half + 1; i <= half && j <= n;) {
    if (2 * num[i] <= num[j]) {
      i++, j++, ans--;
    } else {
      j++;
    }
  }
  printf("%d\n", ans);
  return 0;
}
