LearnPy Hub
← Arena
AdvancedRating 1800

Total of All Divisor Sums

Let σ(i) be the sum of the divisors of i. Print σ(1) + σ(2) + … + σ(n) modulo 1 000 000 007.

Input

One integer n (1 ≤ n ≤ 10¹²).

Output

One integer.

Sample 1

Input
1
Output
1

Sample 2

Input
5
Output
21
solution.py
Output appears here
Total of All Divisor Sums · Python Arena problem · LearnPy Hub