The first line contains only one positive integer �T(1≤�≤10)(1≤T≤10). which represents the number of test cases.
Next, there will be �T lines, each containing two positive integers, �n and �k, where 1≤�≤401≤n≤40 and 1≤�≤100001≤k≤10000.
4
1 1
2 1
2 2
3 3
0
2
36
8736