In the game Lizard Era: Beginning the protagonist will travel with three companions: Lynn, Meliana and Worrigan. Overall the game has n mandatory quests. To perform each of them, you need to take exactly two companions.
The attitude of each of the companions to the hero is an integer. Initially, the attitude of each of them to the hero of neutral and equal to 0. As the hero completes quests, he makes actions that change the attitude of the companions, whom he took to perform this task, in positive or negative direction.
Tell us what companions the hero needs to choose to make their attitude equal after completing all the quests. If this can be done in several ways, choose the one in which the value of resulting attitude is greatest possible.
Output
If there is no solution, print in the first line "
Impossible".
Otherwise, print
n lines, two characters is each line − in the
i-th line print the first letters of the companions' names that hero should take to complete the
i-th task ('
L' for Lynn, '
M' for Meliana, '
W' for Worrigan). Print the letters in any order, if there are multiple solutions, print any of them.
Examples
Output
LM
MW
LM
LW
MW
LM
LW