#t466. FBI树

FBI树

Background

Special for beginners, ^_^

Description

We can classify strings made up of 0 and 1 into three types: an all-0 string is called a BB string, an all-1 string is called an II string, and a string containing both 0 and 1 is called an FF string.

An FBIFBI tree is a kind of binary tree whose node types are also of three kinds: FF nodes, BB nodes and II nodes. Given a 01 string SS of length 2N2^N, we can construct an FBIFBI tree TT by the following recursive construction:

The root of TT is RR, and its type is the same as the type of the string SS;

If the length of SS is greater than 11, split SS from the middle into a left substring S1S1 and a right substring S2S2 of equal length; construct the left subtree T1T1 of RR from the left substring S1S1, and the right subtree T2T2 of RR from the right substring S2S2.

Now given a 01 string of length 2N2^N, construct an FBIFBI tree using the construction above, and output its postorder traversal sequence.

Format

Input

The first line of the input is an integer N (0≤N≤10)N\ (0 \le N \le 10), and the second line is a 01 string of length 2N2^N.

Output

Output one line containing exactly one string: the postorder traversal sequence of the FBIFBI tree.

Samples

3
10001011
IBFBBBFIBFIIIFF

Limitation

1s, 1024KiB for each test case.

For 40%40\% of the data, N≤2N \le 2;

For 100%100\% of the data, N≤10N \le 10.