#include <bits/stdc++.h>
using namespace std;
using namespace std;
const long long MAXN = 5e5 + 5;
long long arr[MAXN];
vector<long long> b[710];
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  vector<long long> arr(n);
  for (long long i = 0; i < n; i++) cin >> arr[i];
  sort(arr.begin(), arr.end());
  long long ans = 0, j = (n / 2 - 1);
  vector<long long> vis(n, 0);
  for (long long i = (n - 1); i > 0; i--) {
    if (vis[i]) continue;
    while (j >= 0) {
      if ((arr[j] * 2) <= arr[i]) {
        vis[i] = 1;
        vis[j] = 1;
        ans++;
        j--;
        break;
      }
      j--;
    }
  }
  cout << (n - ans);
  return 0;
}
