There are three integers $A, B$ and $C$ written on the blackboard.
You can perform the following two operations as many times as you like:
-
Change $B$ to $A-B$.
-
Change $C$ to $B-C$.
Please note that each time you don't need to perform all two operations. You can choose one type of operation to perform.
You are given an integer $x$. Answer whether you can change $C$ into $x$ using these operations.
You need to answer $T$ queries independently.