Fizz and Buzz

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

문제

Two dwarves, Fizz and Buzz, compose a sequence of nn integers. Each element is constructed as follows. First, the friends toss a fair coin to choose who will create the next number: with probability 12\frac{1}{2} it will be Fizz, and with probability 12\frac{1}{2} it will be Buzz. After that, if the toss was in favor of Fizz, he considers all integers from 11 to 10,00010\\,000 divisible by 33 and selects one of them at random. All these integers have the same probability of being selected. If the toss was in favor of Buzz, he considers all integers from 11 to 10,00010\\,000 divisible by 55 and selects one of them at random. All these integers also have the same probability of being selected. All coin tosses and all integer selections are independent events.

The dwarves composed a sequence of nn integers by the rules outlined above. Given the resulting sequence, guess who created which number, and do not make too many errors in the process.

입력

The first line contains an integer nn, the length of the sequence (1n10,0001 \le n \le 10\\,000). The second line contains the sequence itself: the integers a_1a\_1, a_2a\_2, \ldots, a_na\_n (1a_i10,0001 \le a\_i \le 10\\,000). It is guaranteed that the sequence was composed according to the problem statement using a random number generator.

출력

Print a single line with nn characters each of which is either "F" or "B". In the perfect answer, the character at position ii must be "F" if the number a_ia\_i was created by Fizz, or "B" if the number a_ia\_i was created by Buzz. Your answer can contain at most 12001200 errors. In other words, it can differ from the perfect answer at no more than 12001200 positions.

힌트

The example above shows the perfect answer. In this example, the solution can not make more than ten errors, so any correctly formatted answer will be accepted.