N=int(eval(input()))

s=0

for i in range(1,N):

  s+=(N-0.1)//i



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

s=0

for i in range(1,N):

  s+=(N-1)//i

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

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

-    s += (N - 0.1) // i -print((int(s))) +    s += (N - 1) // i +print(s)