One day, Mr. Cai found a psychological test for TT.
This test contains N problems and each option for each problem leads to another problem.
And then one or more problems may leads TT to a result.
For example:
Problem 1:
A. To 2 B. To 2 C. To 2 D. A
Problem 2:
A. B B. C C. D D. E
The content above means:
If you choose A, B, C of problem 1, you should do problem 2 next. If you choose D of problem 1, the result is type A.
If you choose A of problem 2, your result is type B.
Now TT has done the test and gets a result in T steps. Can you guess which result is she?
For each query of step T, you shoule output the probably results of TT by lexicographical order. If TT lied (means TT can't get a result at step T), then output 'TT loves to lie'.