Little Shino loves to play with numbers. She just came to know about Fibonacci Series.
Fibonacci Series is a series of number such that
Soon Little Shino realized that Fibonacci series grows very fast. So she just wants the sum of last 4 digits of the
Input:
First line of each test case contains one integer, T, number of test cases.
Each test case contains two integer, l and r.
Output:
Print the sum of last 4 digits of the
Constraints:
3 1 3 1 4 8 10
2 4 68
First case:
Sum of last 4 digits of
Second case:
Sum of last 4 digits of
Third case:
Sum of last 4 digits of
Please login to use the editor
You need to be logged in to access the code editor
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor