Eungi has N bottles, numbered 1 through N, and L drawers, numbered 1 through L. The bottles are scattered across his bedroom floor, and he has decided to clean the room.
A drawer holds at most one bottle. So that he can find the bottle he wants quickly later, Eungi wrote down two drawer numbers Ai and Bi for every bottle. Those two are the only drawers bottle i fits into.
Eungi puts the bottles away in order from bottle 1 to bottle N, applying the following rules to each bottle from top to bottom.
Write a program that determines, for each bottle, whether it is stored in a drawer or drunk on the spot.
The first line contains N and L. (1≤N,L≤300000)
Each of the next N lines contains Ai and Bi. (1≤Ai,Bi≤L, Ai=Bi)
For bottle 1 through bottle N, in order, print one line each: LADICA if the bottle is stored in a drawer, SMECE if it is drunk on the spot.
In the example, the first six bottles go into drawers 1, 3, 5, 7, 9, and 2 by rule 1.
The seventh bottle uses rule 3. The bottle in drawer 1 moves to drawer 2, the bottle in drawer 2 moves to drawer 3, and the bottle in drawer 3 moves to drawer 4.
The eighth bottle goes into drawer 8.
The ninth bottle uses rule 3 as well. The bottle in drawer 7 moves to drawer 8, the one in drawer 8 moves to drawer 2, the one in drawer 2 moves to drawer 1, the one in drawer 1 moves to drawer 5, and the one in drawer 5 moves to drawer 6.