n=int(input()) a=list(map(int,input().split())) z=sorted(set(a)) d={v:i for i,v in enumerate(z)} tl=1 while tl0: st[p]+=1 p//=2 print(c)