F_k (k = -\infty, \ldots, +\infty) is an infinite sequence of integers, which satisfies the Fibonacci condition:
for any integer .
You are given , F_i, , F_j, such that i \neq j. Find F_n.
The first line contains the integers , F_i, , F_j, .
Output the single number F_n.
Example 1