#include <bits/stdc++.h>
using namespace std;
int n;
int arr[500005];
int main() {
  cin >> n;
  int ans = n;
  int idx = n / 2;
  int j = idx;
  for (int i = 0; i < n; i++) scanf("%d", &arr[i]);
  sort(arr, arr + n);
  for (int i = 0; i < idx && j < n; i++) {
    while (arr[i] > arr[j] / 2) j++;
    if (j < n && arr[i] <= arr[j] / 2) ans--, j++;
  }
  cout << ans << endl;
}
