Borderless Words

아직 제출이 없습니다시간 제한4초메모리 제한512 MB

문제

A word ww is called bordered if there exists a word uu, other then ww and empty word ε\varepsilon, such that uu is both suffix and prefix if ww. For example, a word <<abbababb>> is bordered because <<abb>> is both its prefix and its suffix. A word that is not bordered is called borderless. For example, a word <<aabab>> is borderless. 

Consider all borderless words of length nn composed of letters <<a>> and <<b>>. Let us denote the number of such words as C_nC\_n. Order them lexicographically --- by the first letter, then by the second one, etc, and number from 1 to C_nC\_n. Given kk find the kk-th word in this order.

입력

The input file contains multiple test cases.

Each test case contains two integers nn and kk on a line (1n641 \le n \le 64, 1kC_n1 \le k \le C\_n).

Input is followed by a line with n=k=0n = k = 0. There are at most 1000 test cases in one input file.

출력

For each test case output one line --- the kk-th lexicographically borderless word of length nn.