n = int(eval(input()))

c = 0

for a in range(1, n): c += (n-1)//a

print(c)

n = int(eval(input()))

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

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

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

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