N = int(input()) A=list(map(int,input().split())) A.sort(reverse=True) Beki = 2 cnt = 0 ans = 0 for i in range(N): if i