N = int(eval(input()))

a = 0

for A in range(1,N+1):

    a+=(N-1)//A

print(a)

N=int(eval(input()))

a = 0

for A in range(1, N):

#  for B in range(1, N):

#    for C in range(1, N):

#      if A*B+C==N:

#        a += 1

  a += (N-1)//A

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

N = int(eval(input()))
a = 0
for A in range(1, N):
    #  for B in range(1, N):
    #    for C in range(1, N):
    #      if A*B+C==N:
    #        a += 1
    a += (N - 1) // A
print(a)

-for A in range(1, N + 1): +for A in range(1, N): +    #  for B in range(1, N): +    #    for C in range(1, N): +    #      if A*B+C==N: +    #        a += 1