ENIGMATH  PLAY WITH MATH
You would have been fed up with competitive programming questions so far, now it is time to solve little math.
Assume you have a equation A * x  B * y = 0
For a given value of A and B, find the minimum positive integer value of x and y that satisfies this equation.
Input
First line contains T, number of test cases 0 <= T <=1000 followed by T lines.
First line of each test case contains two space seperated integers A and B. 1 <= A, B <=1 000 000 000.
Output
For each test case, output a single line containing two integers x and y (seperated by a single space).
Example
Input: 1 2 3 Output: 3 2
Note:
 Brute force won't pass the given constraint.
 Negative number cases are avoided to make the problem easy.
hide comments
him_novice:
20170905 05:15:37
Easiest question... Don't forget to print new line. Costed me one WA 

secrets_inside:
20170820 16:39:14
i used


raichu7:
20170730 03:45:42
AC in one go :) 

one_mole:
20170629 14:40:59
Last edit: 20170629 14:41:55 

looser69:
20170408 09:28:06
easy !! accepted in one go!!!use gcd 

rohit9934:
20170311 15:56:15
when a==b values of x and y are "1 1". i was putting 1.this give me 6 WA. Nice and easy.1 line of logic. 

da_201501181:
20170306 14:52:04
AC in one GO...!! Very Simple..!! 

scorpion_ajay:
20170216 13:14:52
too easy :)


the_phoenixx:
20170127 12:13:37
Easy question!!


sanjanajain:
20170125 15:39:23
m getting WA plz check my code @http://ideone.com/xFuXzT 
Added by:  B.R.ARVIND 
Date:  20130912 
Time limit:  1s 
Source limit:  50000B 
Memory limit:  1536MB 
Cluster:  Cube (Intel G860) 
Languages:  All except: ASM64 