N = int(eval(input()))



t = 0

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

  m = N//j

  t += (1+m)*m//2 * j

#

print(t)

N = int(eval(input()))



nn = N//2

t = 0

for j in range(1,nn+1):

  m = N//j

  t += (1+m)*m//2 * j

#

t += ((nn+1)+N)*(N-nn)//2

print(t)

N = int(eval(input()))
t = 0
for j in range(1, N + 1):
    m = N // j
    t += (1 + m) * m // 2 * j
#
print(t)

N = int(eval(input()))
nn = N // 2
t = 0
for j in range(1, nn + 1):
    m = N // j
    t += (1 + m) * m // 2 * j
#
t += ((nn + 1) + N) * (N - nn) // 2
print(t)

+nn = N // 2 -for j in range(1, N + 1): +for j in range(1, nn + 1): +t += ((nn + 1) + N) * (N - nn) // 2