#include <bits/stdc++.h>
using namespace std;

int main() {
    int N;
    cin>>N;

    int64_t sum=0;
    for(int i=1;i<=N;i++){
        int64_t D=N/i;
        sum+=i*D*(D+1)/2;
    }
    cout<<sum<<endl;
}