n = int(eval(input()))



ans = 0

for a in range(1, n):

    ans += (n - 1) // a

print(ans)

n = int(eval(input()))

print((sum((n-1)//a for a in range(1,n))))

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

n = int(eval(input()))
print((sum((n - 1) // a for a in range(1, n))))

-ans = 0 -for a in range(1, n): -    ans += (n - 1) // a -print(ans) +print((sum((n - 1) // a for a in range(1, n))))