The first line contains one integer, denoting the number of test cases.
For each test case:
Input one line containing two integers, denoting the given fraction.
For each test case:
If solution exists, output one line containing two integers, or print two zeros in one line if no solution.