#c22903. 斐波那契数列2
斐波那契数列2
Fibonacci Sequence 2
Problem Description
The Fibonacci sequence is the sequence , in which every term starting from the third is the sum of the two preceding terms.
Compute the -th term of this sequence modulo .
Input Format
The first line contains an integer .
Output Format
Output one line containing a single integer: the answer.
Sample Input
5
Sample Output
5
Constraints
For of the test cases, .