#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const int N = 5e10 + 5;
int main() {
  bool flag = 0;
  int n, ans = 0, k;
  cin >> n;
  int arr[n + 5];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  sort(arr, arr + n);
  k = n / 2;
  for (int i = 0; i < n / 2; i++) {
    for (int j = k; j < n; j++) {
      if (arr[i] * 2 <= arr[j]) {
        ans++;
        k = j + 1;
        break;
      }
      if (j == n - 1) {
        flag = 1;
      }
    }
    if (flag) break;
  }
  cout << n - ans;
  return 0;
}
