#Q225. 「一本通 6.5 练习 1」Fibonacci
「一本通 6.5 练习 1」Fibonacci
Description
Original Source: POJ 3070
We know the Fibonacci sequence is defined as , , and for .
Compute .
Input Format
Multiple test cases. Each case consists of a single line containing an integer .
Input ends with .
Output Format
For each test case, output .
Sample 1
0
9
999999999
1000000000
-1
0
34
626
6875
Constraints and Notes
For all test cases, .