n=int(eval(input()))

a=0

for i in range(1,n):

  a+=(n-1)//i

print(a)
n=int(eval(input()))-1

print((sum(n//-~i for i in range(n))))
n = int(eval(input()))
a = 0
for i in range(1, n):
    a += (n - 1) // i
print(a)

n = int(eval(input())) - 1
print((sum(n // -~i for i in range(n))))

-n = int(eval(input())) -a = 0 -for i in range(1, n): -    a += (n - 1) // i -print(a) +n = int(eval(input())) - 1 +print((sum(n // -~i for i in range(n))))