if __name__ == '__main__': N = int(input()) a = [] K = int(input()) a.append(K) print('1') for i in range(1, N): a.append(int(input())) a.sort(reverse=True) print(a.index(K) + 1)