n=int(eval(input()))

ans=0

for i in range(1,n+1):

  key=n//i

  ans+=int(key*(key+1)*i/2)

print(ans)
n=int(eval(input()))

ans=0

for i in range(1,n+1):

  key=n//i

  ans+=(key*(key+1)*i//2)

print(ans)
n = int(eval(input()))
ans = 0
for i in range(1, n + 1):
    key = n // i
    ans += int(key * (key + 1) * i / 2)
print(ans)

n = int(eval(input()))
ans = 0
for i in range(1, n + 1):
    key = n // i
    ans += key * (key + 1) * i // 2
print(ans)

-    ans += int(key * (key + 1) * i / 2) +    ans += key * (key + 1) * i // 2