Fibonacci numbers is a sequence of numbers defined by the recurrence relation:
Your task is to find the greatest common divisor of two Fibonacci numbers.
Two numbers and (1 \leq i, j \leq 10^6) — the indices of the Fibonacci numbers.
Print the remainder of the greatest common divisor of the numbers F_i and F_j when divided by 10^9.
Example 1