k = int(input()) r = 1 print(r) for _ in range(int(input())-1): s = int(input()) if k < s: r += 1 print(r)