Recursion [I]


Recursion [I]

The Fibonacci Sequence is a famous sequence defined by the recurrence relation:

{F(n)=10≤n≤1F(n)=F(n−1)+F(n−2)n≥2\begin{cases} F(n) = 1 & 0 \leq n \leq 1 \\ F(n) = F(n-1) + F(n-2) & n \geq 2 \end{cases}

For example, F(0),F(1),F(2),F(3),F(4)F(0), F(1), F(2), F(3), F(4) can be written as 1,1,2,3,51, 1, 2, 3, 5

In this question, you must compute F(n)F(n) for some value nn. Since the value may be quite large, output your answer modulo 109+710^9+7.

Input

Input will contain a single integer nn

Output

Output should contain a single integer, representing F(n)mod109+7F(n) \text{mod} 10^9+7.

Constraints

  • 0≤n≤10180 \leq n \leq 10^18

Example

Input 1
5
Output 1
8

Comments0


No comments yet

Be the first to comment.

New comment


Log in to join the discussion.