N = int(eval(input()))



cnt = 0

for a in range(1, N):

    # print(f'{a=}, {N // a}')

    if N % a == 0:

        cnt += N // a - 1

    else:

        cnt += N // a



print(cnt)

N = int(eval(input()))



cnt = 0

for a in range(1, N):

    # print(f'{a=}, {N // a}')

    cnt += (N - 1) // a



print(cnt)

N = int(eval(input()))
cnt = 0
for a in range(1, N):
    # print(f'{a=}, {N // a}')
    if N % a == 0:
        cnt += N // a - 1
    else:
        cnt += N // a
print(cnt)

N = int(eval(input()))
cnt = 0
for a in range(1, N):
    # print(f'{a=}, {N // a}')
    cnt += (N - 1) // a
print(cnt)

-    if N % a == 0: -        cnt += N // a - 1 -    else: -        cnt += N // a +    cnt += (N - 1) // a