Given two numbers a and b, you have to find the number which is divisible by a or b.
Input :
First line consists of an integer T, denoting the number of test cases.
Second line contains three integers a, b and N .
Output :
For each test case, print the number in a new line.
Constraints :
The numbers which are divisible by 2 or 3 are: and the number is .