N = int(input()) for _ in range(N): v = int(input()) if 'first' not in locals(): first = v rnk = 1 else: if v > first: rnk += 1 print(rnk)