Terra and Lulu run an orchard. One day, they find harvested apples, each marked with one of L, M, and R.
Lulu suggests dividing the apples by playing a game. The apples are placed in a row on a table. Let be the length- string obtained by reading the marks from left to right.
Starting with Lulu, the two players alternate turns. On each turn, the player chooses one apple currently on the table.
- If the chosen apple is marked
L, the player takes that apple and every apple to its left. - If the chosen apple is marked
R, the player takes that apple and every apple to its right. - If the chosen apple is marked
M, the player chooses one of the two actions above and performs it.
After apples are taken, the relative order of the remaining apples does not change. A player loses if there are no apples on the table when their turn begins.
Determine the winner when both Terra and Lulu play optimally.
Input
The input is given from Standard Input in the following format:
Each case is given in the following format:
Output
For each test case, print Terra if Terra wins, and print Lulu if Lulu wins.
Constraints
- .
- .
- .
- is one of
L,M, andR. () - The sum of over all test cases does not exceed .