Question
Sum of Mystic Numbers
In a mysterious kingdom, a mathematician named Dev is fascinated by special numbers known as Mystic Numbers. A number is called a Mystic Number with respect to an integer N if it meets the following conditions:
  1. The GCD (Greatest Common Divisor) of the Mystic Number and N is 1.
  2. The LCM (Least Common Multiple) of the Mystic Number and N is divisible by N.
  3. The Mystic Number cannot have any factor between 2 and N-1 (both inclusive).
Dev’s task is to find the sum of all such Mystic Numbers that are less than or equal to N. Since the result could be very large, the sum must be returned modulo 1000000007.
Can you help Dev calculate the sum of these Mystic Numbers?
Input
The first line of the input contains a single integer N.

Constraints
1 ≤ N ≤ 109
Output
Print a single integer representing the sum of mystic numbers.
Example
Sample Input
5
Sample Output
11

Online