N = int(eval(input()))

X = [N//i for i in range(1, N+1)]

print((sum([x*(x+1)*i//2 for x, i in zip(X, list(range(1, N+1)))])))
N = int(eval(input()))

ans = 0

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

    x = N//i

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

print((int(ans)))
N = int(eval(input()))
X = [N // i for i in range(1, N + 1)]
print((sum([x * (x + 1) * i // 2 for x, i in zip(X, list(range(1, N + 1)))])))

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

-X = [N // i for i in range(1, N + 1)] -print((sum([x * (x + 1) * i // 2 for x, i in zip(X, list(range(1, N + 1)))]))) +ans = 0 +for i in range(1, N + 1): +    x = N // i +    ans += x * (x + 1) * i / 2 +print((int(ans)))