{"problem":{"name":"C. Cheering","description":{"content":"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, ","description_type":"Markdown"},"platform":"Codeforces","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"CF10152C"},"statements":[{"statement_type":"Markdown","content":"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.\n\nUnfortunately, 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.\n\nThe 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?\n\nThe first and only line of input consists of a string with N uppercase letters.\n\nFor all test cases, N ≤ 100.\n\nLet A be the number of occurrences of _LSC_ in the given string.\n\nLet B be the number of occurrences of _PCMS_ in the given string.\n\nIf A > B, output _LSC_.\n\nIf A < B, output _PCMS_.\n\nIf A = B, output _Tie_.\n\n## Input\n\nThe first and only line of input consists of a string with N uppercase letters.For all test cases, N ≤ 100.\n\n## Output\n\nLet 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_.\n\n[samples]","is_translate":false,"language":"English"},{"statement_type":"Markdown","content":"**Definitions**  \nLet $ S $ be a string of length $ N \\leq 100 $, consisting of uppercase English letters.  \nLet $ A $ be the number of occurrences of the substring \"LSC\" in $ S $.  \nLet $ B $ be the number of occurrences of the substring \"PCMS\" in $ S $.  \n\n**Constraints**  \n$ 1 \\leq N \\leq 100 $  \n\n**Objective**  \nCompute $ A = \\sum_{i=1}^{N-2} \\mathbf{1}[S[i:i+3] = \\text{\"LSC\"}] $  \nCompute $ B = \\sum_{i=1}^{N-3} \\mathbf{1}[S[i:i+4] = \\text{\"PCMS\"}] $  \n\nOutput:  \n- \"LSC\" if $ A > B $,  \n- \"PCMS\" if $ A < B $,  \n- \"Tie\" if $ A = B $.","is_translate":false,"language":"Formal"}],"meta":{"iden":"CF10152C","tags":[],"sample_group":[],"created_at":"2026-03-03 11:00:39"}}