Please write a program to calculate the k-th positive integer that is coprime with m and n simultaneously. A is coprime with B when their greatest common divisor is 1.
输入解释
The first line contains one integer T representing the number of test cases. For each case, there's one line containing three integers m, n and k (0 < m, n, k <= 10^9).
输出解释
For each test case, in one line print the case number and the k-th positive integer that is coprime with m and n. Please follow the format of the sample output.