#include<iostream>
#include<string>
#include<iomanip>
using namespace std;
void FBI_tree(string s, int n)
{
if (n == 0)
{
return;
}
int is_0 = 0;
int is_1 = 0;
char R;
for (int i = 0; i < n; i++)
{
if (s[i] == '0')
{
is_0 = 1;
}
else
{
is_1 = 1;
}
}
if (is_0 && is_1)
{
R = 'F';
}
if (is_0 && !is_1)
{
R = 'B';
}
if (!is_0 && is_1)
{
R = 'I';
}
FBI_tree(s.substr(0, n / 2 ), n / 2);
FBI_tree(s.substr(n / 2, n / 2), n / 2);
cout << R;
}
int main()
{
int n;
string s;
while (cin >> n >> s)
{
n = pow(2, n);
FBI_tree(s, n);
cout << endl;
}
return 0;
}