N = int(eval(input()))



table = [0] * (N+5)



for i in range(1, N+3):

    for j in range(i, N+2, i):

        table[j] += 1

ans = 0

for i in range(N):

    ans += table[i]



print(ans)
N = int(eval(input()))



ans = 0



for i in range(1, N):

    ans += (N-1) // i



print(ans)
N = int(eval(input()))
table = [0] * (N + 5)
for i in range(1, N + 3):
    for j in range(i, N + 2, i):
        table[j] += 1
ans = 0
for i in range(N):
    ans += table[i]
print(ans)

N = int(eval(input()))
ans = 0
for i in range(1, N):
    ans += (N - 1) // i
print(ans)

-table = [0] * (N + 5) -for i in range(1, N + 3): -    for j in range(i, N + 2, i): -        table[j] += 1 -for i in range(N): -    ans += table[i] +for i in range(1, N): +    ans += (N - 1) // i