Problem Statement
Pondo would like to know the Fibonacci number modulo . The Fibonacci number is determined by the following recurrence and .
Input Format
Your first line of input will contain a single integer .
Output Format
Output a single integer representing the Fibonacci number modulo .
Constraints
- ## Sample Cases ### Input 1
10
Output 1
55
Input 2
1000000000
Output 2
21
Explanation 2
Remember to modulo.
Input 3
99999999
Output 3
36891058
Comments