Dice

No attempts yetTime limit1sMemory limit128 MB

Problem

Jack claims that he has telekinetic powers. He has bet Mike that he can throw a die nn times and make the pips add up to exactly kk. Jack's die is a perfectly symmetric cube with the numbers 11 through 66 on its faces. Mike does not believe in telekinesis, but he is worried that Jack might win the bet by pure luck. He therefore wants to know the chance (as a percentage) of such an unlucky event, and asks you to write a program that computes it.

In other words, throw a fair die nn times and find, as a percentage, the probability that the pips add up to exactly kk.

Input

The first line contains a single integer tt (1t201 \le t \le 20), the number of test cases. Each of the next tt lines contains two integers nn and kk (1n,k1061 \le n, k \le 10^6) separated by a single space, where nn is the number of throws and kk is the target sum of pips.

Output

For each test case, print on its own line the probability (as a percentage) that Jack wins the bet, rounded down to the nearest integer. That is, print the integer part of 100100 times the probability that nn throws of a fair die sum to exactly kk.