Жишээ тэстүүд

Оролт
5 1
Гаралт
5
Оролт
2 2
Гаралт
5
Оролт
3 2
Гаралт
9
Оролт
11 5
Гаралт
4367
Оролт
37 63
Гаралт
230574

Тэмдэглэл

The number 106 + 3 is prime.

In the second sample case, the five walls are:


B B
B., .B, BB, B., and .B

In the third sample case, the nine walls are the five as in the second sample case and in addition the following four:


B B
B B B B
B., .B, BB, and BB