n = int(input()) k = int(input()) l = [k] print(1) for i in range(n-1): l.append(int(input())) l = sorted(l)[::-1] print(l.index(k)+1)