N = int(eval(input()))



s=k=kn=0;n=N

while k<n:

	k += 1

	n = N//k

	kn = k*n*(n+1)

	s += 4*kn

s -= (k+1)*kn

if n<k:

	s -= 2*kn 

print((s//4))

N = int(eval(input()))



s=k=0;n=N

while k<n:

	k += 1

	n = N//k

	s += k*n*(n+1)

knn = k*n*(n+1)//2

s -= (k+1)*knn//2

if n<k:

	s -= knn



print(s)

N = int(eval(input()))
s = k = kn = 0
n = N
while k < n:
    k += 1
    n = N // k
    kn = k * n * (n + 1)
    s += 4 * kn
s -= (k + 1) * kn
if n < k:
    s -= 2 * kn
print((s // 4))

N = int(eval(input()))
s = k = 0
n = N
while k < n:
    k += 1
    n = N // k
    s += k * n * (n + 1)
knn = k * n * (n + 1) // 2
s -= (k + 1) * knn // 2
if n < k:
    s -= knn
print(s)

-s = k = kn = 0 +s = k = 0 -    kn = k * n * (n + 1) -    s += 4 * kn -s -= (k + 1) * kn +    s += k * n * (n + 1) +knn = k * n * (n + 1) // 2 +s -= (k + 1) * knn // 2 -    s -= 2 * kn -print((s // 4)) +    s -= knn +print(s)