Roll the Circle
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Walk Alone has two circles. The two circles are externally tangent, and are of radius a and b respectively. He keeps the first circle of radius a stationary, and rotates the second one around the first one, keeping the point of contact without slipping. He wants to know how many times will the second circle revolve after rolling it exactly one trip back to its starting point.

输入描述:

The input consists of multiple test cases.

The first line contains an integer , the number of test cases.

For each test case, the first and the only line contains two integers a and , denoting the radius of two circles.

输出描述:

For each test case output the answer in a line. The answer should be expressed as a minimal fraction  where .
示例1

输入

复制
2
2 1
4 6

输出

复制
3/1
5/3