N=int(input()) K=int(input()) rank=1 ans=[] ans.append(1) for _ in range(N-1): A=int(input()) if K