Kaosar and Loop#12326

Kaosar and Loop

1 second
256 megabytes
Medium

you are given integers and now let there is a function as following

f(array a):
    ans = a[1]
    for i in range(2,len(a)):
        temp = 0
        for j in range(1,i):
            temp|=a[j]
        ans&=temp
    return ans

Here the array using -based indexing and the "range" word is inclusive at both sides (start and end) , i.e.

iterates through 2,3,4,...,|a| and

iterates through 1,2,3,...,i.

Here is bitwise OR and is bitwise AND, and is a array use k at first position , then use random distinct integers that are consists of digits of 6,7,0 will work , use it of integers.

You have to print any sequence of integers of length such that f(a) = k and all the element of must be distinct.

Input

The first line contains a single integer (1\le t \le 10^3) — the total number of test cases.

Each test case contains two integers (1\le n \le 10^5) , (1\le k \le 10^{18}) — the length of the array and the desired .

It's guaranteed that \sum n \le 10^5 overall test cases.

Output

Print any possible array such that f(p)=k and all p_i\neq p_j and 1\le p_i\le 10^{18} for (1\le i<j\le n)

Examples

Example 1

Loading
Loading

Scoring

  1. Subtask ( points) : (n=1)

  2. Subtask ( points) : (k = 2^i)

  3. Subtask ( points) : (1\le n \le 1000)

  4. Subtask ( points) : No additional constraints.