A sequence of numbers a_1, a_2, \ldots is called a Fibonacci sequence if for any i \geq 3, the following holds:
You are given two elements of this sequence with indices and . Find the -th element of the sequence.
In the second example, the Fibonacci sequence is , , , , , ,
You are given the numbers , , , a_i, a_j. Constraints: , , are natural numbers not exceeding 10^6, and are always distinct; a_i and a_j are integers whose absolute values do not exceed 2 \cdot 10^9.
Output a_k. The input is such that all members of the sequence are integers, and a_k does not exceed 2 \cdot 10^9 in absolute value.
Example 1