For every given pair of natural numbers and , compute , where is the -th Fibonacci number (starting at 0).
The input consists of several pairs of and . Assume and .
For every given pair, print .
Consider the problem P61833.
Input
0 100 10 100 10 9 1000 876
Output
0 55 1 411