SP20930 EC_SER - Progression
Description
Let be **S** a infinite secuence of integers:
S $ _{0} $ = **a**;
S $ _{1} $ = **b**;
S $ _{i} $ = |S $ _{i-2} $ - S $ _{i-1} $ | for all i >= 2.
You have two integers **a** and **b.** You must answer some queries about the n-th element in the secuence
Input Format
The first line contains **a** y **b** ( 0
Output Format
For each **q** **$ _{i} $** you must print a line with the q $ _{i} $ -th elementh of **S.**