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

int main() {
  long long n;
  long long ans=0;
  cin >> n;

  for (long long i = 1; i <= n; i++) {
    long long k = n/i;
    ans += k*(k+1)*i/2;
  }
  cout << ans << endl;
}