N = int(input()) pList = [] for _ in range(N): v = int(input()) if 'first' not in locals(): first = v pList.append(v) pList.sort(key=lambda x: - x) print(pList.index(first) + 1)