N = int(eval(input()))



s,k,n = 0,1,N

while k<=n:

	m = N//k

	s += (k-1)*k*(n-m)*(n+m+1)//2

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

	k,n = k+1,m

if m<k-1:

	s -= (k-1)*m*(m+1) 

print((s//2))

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, n = 0, 1, N
while k <= n:
    m = N // k
    s += (k - 1) * k * (n - m) * (n + m + 1) // 2
    s += k * m * (m + 1)
    k, n = k + 1, m
if m < k - 1:
    s -= (k - 1) * m * (m + 1)
print((s // 2))

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))

-s, k, n = 0, 1, N -while k <= n: -    m = N // k -    s += (k - 1) * k * (n - m) * (n + m + 1) // 2 -    s += k * m * (m + 1) -    k, n = k + 1, m -if m < k - 1: -    s -= (k - 1) * m * (m + 1) -print((s // 2)) +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))