#P1694A. Creep

Creep

Description

Define the score of some binary string TT as the absolute difference between the number of zeroes and ones in it. (for example, T=T= 010001 contains 44 zeroes and 22 ones, so the score of TT is 42=2|4-2| = 2).

Define the creepiness of some binary string SS as the maximum score among all of its prefixes (for example, the creepiness of S=S= 01001 is equal to 22 because the score of the prefix S[14]S[1 \ldots 4] is 22 and the rest of the prefixes have a score of 22 or less).

Given two integers aa and bb, construct a binary string consisting of aa zeroes and bb ones with the minimum possible creepiness.

The first line contains a single integer tt (1t1000)(1\le t\le 1000)  — the number of test cases. The description of the test cases follows.

The only line of each test case contains two integers aa and bb (1a,b100 1 \le a, b \le 100)  — the numbers of zeroes and ones correspondingly.

For each test case, print a binary string consisting of aa zeroes and bb ones with the minimum possible creepiness. If there are multiple answers, print any of them.

Input

The first line contains a single integer tt (1t1000)(1\le t\le 1000)  — the number of test cases. The description of the test cases follows.

The only line of each test case contains two integers aa and bb (1a,b100 1 \le a, b \le 100)  — the numbers of zeroes and ones correspondingly.

Output

For each test case, print a binary string consisting of aa zeroes and bb ones with the minimum possible creepiness. If there are multiple answers, print any of them.

Sample Input 1

5
1 1
1 2
5 2
4 5
3 7

Sample Output 1

10
011
0011000
101010101
0001111111

Note

In the first test case, the score of S[11]S[1 \ldots 1] is 11, and the score of S[12]S[1 \ldots 2] is 00.

In the second test case, the minimum possible creepiness is 11 and one of the other answers is 101.

In the third test case, the minimum possible creepiness is 33 and one of the other answers is 0001100.