#arc127c. [arc127_c]Binary Strings

[arc127_c]Binary Strings

Problem Statement

Snuke has written on a blackboard every integer from 11 through (2N1)(2^N-1), in binary.

Find the XX-th lexicographically smallest string when seeing the integers on the blackboard as strings.

Here, the input gives NN in decimal, but XX in binary.

Constraints

  • 1leqNleq1061 \\leq N \\leq 10^6
  • 1leqXleq2N11 \\leq X \\leq 2^N-1
  • XX is in binary.

Input

Input is given from Standard Input in the following format:

NN XX

Output

Print the answer.


Sample Input 1

3
101

Sample Output 1

11

The strings written on the blackboard in lexicographical order are 1, 10, 100, 101, 11, 110, 111. Additionally, we have X=101(mathrmbinary)=5(mathrmdecimal)X=101(\\mathrm{binary})=5(\\mathrm{decimal}). Thus, the answer is 11.


Sample Input 2

10
10100011

Sample Output 2

1001001111

Sample Input 3

1000000
11111

Sample Output 3

1000000000000000000000000000000