import Control.Monad
import Data.Maybe
import qualified Data.ByteString.Char8 as BS
import Data.List
import Data.Ord

readInt = fst . fromJust . BS.readInt
readIntList = map readInt . BS.words
getInt = readInt <$> BS.getLine
getIntList = readIntList <$> BS.getLine

main = do
    n <- getInt
    as <- sortOn Down <$> getIntList
    print . succ . length . takeWhile id $ zipWith (\a s -> a <= 2 * s) as (tail (scanr (+) 0 as)) 