ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules

1860. Fiborial

Time limit: 0.5 second
Memory limit: 64 MB
Consider a sequence Fi that satisfies the following conditions:
Problem illustration
Find the number of different divisors of Fn.

Input

Input file contains the only integer number n (1 ≤ n ≤ 106).

Output

Output the answer modulo 109 + 7.

Sample

inputoutput
3
4
Problem Author: Denis Dublennykh (idea by Grigoriy Nazarov)
Problem Source: Ural SU Team.GOV Contest. Petrozavodsk Summer Session, August 2011