#K36367. Scenic Prefix Trimmer
Scenic Prefix Trimmer
Scenic Prefix Trimmer
You are given a string which may or may not start with the prefix SCN-
. Your task is to remove this prefix if it exists. Otherwise, return the string unchanged.
The transformation can be mathematically modeled as:
$$Output = \begin{cases} s[4:], & \text{if } s \text{ starts with } \texttt{SCN-} \\ s, & \text{otherwise} \end{cases} $$Make sure to read the entire input from stdin and output the result to stdout.
inputFormat
The input consists of a single line string. The string may or may not begin with the prefix SCN-
. The length of the string is at most 100 characters.
outputFormat
Output the modified string after removing the prefix SCN-
if it exists. Otherwise, output the original string.
SCN-MOUNTAIN
MOUNTAIN