Two integers and are given. Find GCD and LCM of and .
The first line contains the number of testcases . Then follow lines, each line contains two integers and b~(1 \le a, b \le 10^9).
For each test case print on a separate line the GCD and LCM of and .
Example 1