n = int(eval(input()))



ans = 0

for i in range(1, n):

    ans += n//i if n%i != 0 else n//i-1



print(ans)

n = int(eval(input()))



ans = 0

for i in range(1, n):

    ans += (n-1)//i



print(ans)
n = int(eval(input()))
ans = 0
for i in range(1, n):
    ans += n // i if n % i != 0 else n // i - 1
print(ans)

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

-    ans += n // i if n % i != 0 else n // i - 1 +    ans += (n - 1) // i