#include <iostream>
int main(void){
    long N;
    std::cin >> N;
    long sum=0;
    for(long i=1; i<=N; i++){
        sum+=i*(N/i)*(N/i+1)/2;
    }
    std::cout << sum << std::endl;    
    return 0;
}