#include <iostream>
#include <vector>

int main()
{
	int n;
	std::cin >> n;
	long long res = 0;
	for (int i = 1; i <= n; i++)
		for (int j = i; j <= n; j += i)
			res += j;

	std::cout << res << std::endl;
}