Escape from the Darkness

Time Limit: 1s

Memory Limit: 65535k

Description

16dacc7fa03da740b79f2128cfdc.png (583×513)

Input

The first line is a positive integer T (1 <= T <= 55) which indicates the numbers of the test cases. Then flowing next T lines, there are two positive integer a, b (1 <= b<= a<= 10) in each line as a group of cases.

Output

The output of each case is one line with a positive integer which indicates the times of reflects.

Sample Input

1
1 1

Sample Output

5

Hint

fb38c097ead845020d9b5af4bead.png (570×178)

Source

None

提交代码