#include<stdio.h>
int main(void){
  char *s="python3 -c\""
"n=int(input())\n"
"a=sorted(map(int,input().split()))\n"
"s=t=0\n"
"for i in range(n-1):\n"
"    s+=a[i]\n"
"    if s*2<a[i+1]:\n"
"        t=i+1\n"
"print(n-t)\n"
"\"";
  system(s);
  return 0;
}            