Problem Description

For each testcase you get n. Output Fibonacci(n) modulo 1000000007. Use fast doubling so big n is also ok.

Input Format

First integer t. Next t lines n.

Output Format

t lines fib mod.

Sample Test Case

Input:
3 0 1 10
Output:
0 1 55

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next