object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val n = sc.nextInt()
  var ans = 0L
  for (i <- 1 to n) {
    val l = (n / i).toLong
    ans += i * ((l * (l+1)) / 2)
  }
  println(ans)
}
