You are given a pair (a,b) . After each unit of time, pair (a,b) gets changed to (b−a,b+a). You are given the initial value of pair and an integer n and you have to print the value of the pair at the nth unit of time.
Input format
Output format
Constraints
1≤t≤105
0≤a≤b≤109
1≤n≤109
Test case 1:
At n = 1, the pair will be (1, 3).
At n = 2, the pair will be (2, 4).
At n = 3, the pair will be (2, 6).
At n = 4, the pair will be (4, 8).
At n = 5, the pair will be (4, 12).