This year, $$$n$$$ players showed up for the Big Annual Paintball Competition (BAPC), a large national contest in which a blue and red team battle for the national title. Some of the players that showed up know each other already, while others do not. At last year's BAPC, this led to some unfortunate communication incidents, causing the entire event to be cut short: half of the blue team had somehow made their way to an adjacent field, and the red team miraculously managed to capture their own flag. This year's organization has therefore decided that in both teams, each pair of players should already know each other. Additionally, to keep the game fair, all players should be assigned a team, and both teams should be equally large. Is it possible to split the group into two such teams?
The input consists of:
If it is possible to split the group into two teams with the above requirements, then for each player $$$i$$$, output "r" if player $$$i$$$ should join the red team, and "b" if player $$$i$$$ should join the blue team. Otherwise, output "impossible".
If there are multiple valid solutions, you may output any one of them.
2 11 2
r b
4 31 23 13 2
impossible
3 31 21 32 3
impossible
4 41 22 33 44 1
r b b r
| Name |
|---|


