#include <iostream>
using namespace std;

long long ans;

int main() {
	long long n;
	cin >> n;
	for (long long i=1LL; i<=n; ++i){
		ans += i*((n/i + 1LL)*(n/i))/2LL;
	}
	cout << ans << endl;
	return 0;
}