#SDNU1062. Fibonacci

Fibonacci

Description

In the Fibonacci integer sequence,F0 F_0 = 0,F1 F_1 = 1, and FnF_n = FnF_n − 1 + FnF_n − 2 for n2n ≥ 2.

Format

Input

a single line containing nn (where 0n100,000,000,0000 ≤ n ≤ 100,000,000,000)

Output

print FnF_n modmod 10000000071000000007 in a single line.

Samples

99999999999
669753982

Hints

An alternative formula for the Fibonacci sequence is img

As a reminder, matrix multiplication is associative, and the product of two 2 × 2 matrices is given by img

Also, note that raising any 2 × 2 matrix to the 0th power gives the identity matrix: img