n = int(input()) ans = set() for i in range(1, n): ans.add(n // i) print(len(ans))