#include<bits/stdc++.h>
using namespace std;
int main() {
  int N; cin >> N;
  long res = 0;
  for (int i = 1; i <= N; i++) {
    for (int j = i; j <= N; j += i) {
      res += j;
    }
  }
  cout << res << endl;
}