Given a rectangle of dimensions a X b find the minimum number (n) of identical squares of maximum side that can be cut out from that rectangle so that no residue remains in the rectangle. Also find the dimension k of that square.

**Input:**

The first line of the input contains an integer 'T' denoting the number of testcases. Then T test cases follow. Each test case consits of a single line containing two space separated integers a and b denoting the dimensions of the rectangle.

**Output:**

For each test case print n and k (space separated ) in a new line.

**Constraints:**

1<=T<=30

1<=a,b<=10^9

**Example:**

**INPUT:**

3

2 4

3 6

2 8

**OUTPUT:**

2 2

2 3

4 2

Author: Mukesh Kumar 5

Ayush Asthana | 40 |

suuuuiiii | 39 |

Nikita Chouhan | 38 |

sa_sa_sa_sa | 36 |

abhi_3377 | 36 |

Anshul Wadhawan | 906 |

rambo | 868 |

Calahan | 822 |

Suraj Kumar 14 | 792 |

Saurabh Goel | 768 |

akhayrutdinov | 4698 |

Ibrahim Nash | 3664 |

sanjay05 | 3633 |

Quandray | 3543 |

surbhi_7 | 2748 |