#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, i;
  cin >> n;
  vector<long long> v;
  for (i = 0; i < n; i++) {
    long long temp;
    cin >> temp;
    v.push_back(temp);
  }
  sort(v.begin(), v.end());
  long long s = v.size();
  long long mid;
  if (s % 2 == 0)
    mid = (s / 2) - 1;
  else
    mid = s / 2;
  long long p1 = mid, p2 = n - 1;
  while (p1 >= 0) {
    if (p2 <= p1) break;
    if ((v[p2] / v[p1]) >= 2) {
      v[p1] = -1;
      v[p2] = -1;
      p1--;
      p2--;
    } else
      p1--;
  }
  long long ans = 0;
  for (i = 0; i < n; i++) {
    if (v[i] != -1)
      ans += 2;
    else
      ans++;
  }
  cout << ans / 2;
  return 0;
}
