AdvancedRating 1700
Sum of n ÷ i
Print the sum of ⌊n / i⌋ for i = 1 … n. n can be 10¹², so group the i values that give the same quotient.
Input
One integer n (1 ≤ n ≤ 10¹²).
Output
One integer.
Sample 1
Input
1
Output
1
Sample 2
Input
5
Output
10
Output appears here