#include <bits/stdc++.h>   using namespace std;   long long n, arr[500010], temp, j, i, ans;   int main() {     ios::sync_with_stdio(false);     cin.tie(0);     cout.tie(0);     cin >> n;     for (long long i = 0; i < n; i++) {       cin >> arr[i];     };     sort(arr, arr + n);     i = 0, j = n / 2;     ans = n;     while (i < n / 2) {       while (j < n) {         if (arr[i] * 2 <= arr[j]) {           ans--;           j++;           break;         } else           j++;       }       i++;     }     cout << ans <<   n ;   }   