Problem6306--ABC230 —— E - Fraction Floor Sum

6306: ABC230 —— E - Fraction Floor Sum

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

Given is a positive integer $N$. Find the value $\displaystyle\sum_{i=1}^N \left[ \frac{N}{i} \right]$.
Here, for a real number $x, [x]$ denotes the largest integer not exceeding $x$.

Input

Input is given from Standard Input in the following format:
$N$

Output

Print the answer.

Constraints

$1≤N≤10^{12}$
$N$ is an integer.

Sample 1 Input

3

Sample 1 Output

5
We have $\left[ \frac{3}{1} \right]+\left[ \frac{3}{2} \right]+\left[ \frac{3}{3} \right]=3+1+1=5$.

Sample 2 Input

10000000000

Sample 2 Output

231802823220

Source/Category

AtCoder_ABC 100.230.ABC230