#include <bits/stdc++.h>
using namespace std;
template <class T>
T read() {
  T f = 1, k = 0;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    k = k * 10 + c - '0';
    c = getchar();
  }
  return f * k;
}
const int maxn = 5e5 + 10;
int n, m, k, t, b[maxn], len, s;
int a[maxn];
int main() {
  n = read<int>();
  for (int i = 1; i <= n; i++) a[i] = read<int>();
  sort(a + 1, a + 1 + n);
  int ans = n;
  for (int i = n / 2, j = n; i >= 1; i--) {
    if (a[i] * 2 <= a[j]) ans--, j--;
  }
  printf("%d\n", ans);
  return 0;
}
