Recursion [II]
We introduce a new recursive sequence, which satisfies:
Where is the nth fibonacci number, following the previous definition.
For example, can be written as
In this question, you must compute for some value . Since the value may be quite large, output your answer modulo .
Input
Input will contain a single integer
Output
Output should contain a single integer, representing .
Constraints
Example
Input
5
Output
350
Comments