404511: GYM101522 C Cheering
Description
To boost contestants' performances in the 20th La Salle - Pui Ching Programming Challenge, the organizers have bought N robots to cheer for them. Each robot is supposed to display cheering slogans, letter by letter.
Unfortunately, due to some technical reasons, the display screen of each robot can only display one fixed character. Therefore, the organizers decided to arrange the robots in a row, thus forming a string of N letters (What a waste!). All letters are in uppercase.
The two hosting schools have abbreviated names LSC and PCMS, as we all know. Which of the two names appear (as a substring) in the string more often?
InputThe first and only line of input consists of a string with N uppercase letters.
For all test cases, N ≤ 100.
OutputLet A be the number of occurrences of LSC in the given string.
Let B be the number of occurrences of PCMS in the given string.
If A > B, output LSC.
If A < B, output PCMS.
If A = B, output Tie.
ExamplesInputGOLSCOutput
LSCInput
PCMSISTHEBESTOutput
PCMSInput
PCMSWILLNEVERBEATLSCOutput
TieInput
ADDOILEVERYONEOutput
Tie