n=int(input())d=sorted([*map(int,input().split())])l=d[0];s=1for i in d: if l*2<i:s+=1;l=iprint(s)
1 1214
1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!