#include <bits/stdc++.h>
using namespace std;
template <typename tp>
inline void read(tp &x) {
  x = 0;
  register char c = getchar();
  register bool f = 0;
  for (; c < '0' || c > '9'; f |= (c == '-'), c = getchar())
    ;
  for (; c >= '0' && c <= '9'; x = (x << 3) + (x << 1) + c - '0', c = getchar())
    ;
  if (f) x = -x;
}
const int N = 1e5;
int d[N << 3];
int n;
int main() {
  read(n);
  for (int i = 1; i <= n; ++i) {
    read(d[i]);
  }
  sort(d + 1, d + n + 1);
  int l = (n + 1) >> 1, r = n + 1;
  while (l + 1 < r) {
    int mid = (l + r) >> 1;
    bool ok = 1;
    for (int i = mid; i <= n; ++i) {
      if ((d[i - mid + 1] << 1) > d[i]) {
        ok = 0;
        break;
      }
    }
    if (ok) {
      r = mid;
    } else
      l = mid;
  }
  printf("%d\n", l);
  return 0;
}
