| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 512 MB | 74 | 23 | 22 | 45.833% |
The Berland University of Biology (BUB) studies bacteria. It is known that the behaviour of a bacterium is determined by the structure of its DNA. In this problem, we assume that the bacterial DNA is a string consisting of zeros and ones.
Recently, scientists at the BUB have discovered a new type of bacteria. Its main feature is that when a bacterium divides, its DNA does not double, but divides into two halves. More precisely, let's suppose that the DNA of the original bacterium is a string $S=s_1s_2\ldots s_k$ of even length $k$ ($s_i$ denotes the $i$-th character of the string $S$ and is equal to either 0ドル$ or 1ドル$). Then, after the division there are two bacteria with DNA equal to $s_1s_2\ldots s_{\frac{k}{2}}$ and $s_{\frac{k}{2}+1}\ldots s_{k-1}s_k,ドル respectively.
For the experiment, the scientists are planning to take a bacterium with DNA of length 2ドル^n$. The experiment consists of $n+1$ steps. At the end of each of step, except for the last one, each currently available bacterium divides. So, in the first step, there will be only one bacterium with DNA of length 2ドル^n,ドル in the second --- two bacteria with DNA of length 2ドル^{n-1}$ each, and so on. Finally, at the $n+1$-st step, there will be 2ドル^n$ bacteria, each of them will have only one character in its DNA.
Of course, it is not interesting to study bacteria with the same DNA. Determine what the DNA that the first bacterium should have, so that there are as many different types of DNA as possible obtained during the experiment.
The first line contains one integer $n$ (1ドル\le n\le 20$) denoting that the DNA of first bacterium should have the length of 2ドル^n$.
Print one string of characters 0ドル$ and 1ドル,ドル its length must be equal to 2ドル^n$ --- the DNA of the first bacterium, so that the number of different DNA during the experiment is greatest possible. If there are many possible answers, print any of them.
3
00100111
There will be 9 different DNA to appear during the experiment in the first sample test: 00100111ドル,ドル 0010ドル,ドル 0111ドル,ドル 00ドル,ドル 10ドル,ドル 01ドル,ドル 11ドル,ドル 0ドル$ and 1ドル$.