题目描述
Problem Description
Xiao R is a lovely girl who wants to get closer to the problem setters by writing problem solutions on Luogu.
She noticed that if she clicks the "Submit Solution" button from the problem solution interface, a URL identifier, which is the link to the article, will be automatically generated in the blog.
The rules for generating the identifier are as follows:
- Convert all uppercase letters in the problem ID to lowercase.
- Replace all underscores in the result from the previous step with hyphens.
- Prepend
solution-to the result from the previous step.
She is preparing to write a solution for a problem, given the problem ID, can you determine the URL identifier?
Input Format
A single line containing a string $s$, representing the problem ID.
Output Format
A single line containing a string, representing the URL identifier.
Sample Input and Output
Sample Input #1
P9202
Sample Output #1
solution-p9202
Sample Input #2
CF1797F
Sample Output #2
solution-cf1797f
Sample Input #3
AT_abc312_h
Sample Output #3
solution-at-abc312-h
Notes
Sample #3 Explanation
According to the generation rules:
- Convert all uppercase letters in the problem ID to lowercase:
at_abc312_h. - Replace all underscores in the result from the previous step with hyphens:
at-abc312-h. - Prepend
solution-to the result from the previous step:solution-at-abc312-h.
Data Range
There are a total of 10 test cases, each worth 10 points.
For all data, the problem ID is guaranteed to only contain uppercase letters (ASCII 65–90), lowercase letters (ASCII 97–122), digits (ASCII 48–57), and underscores (ASCII 95), with a length not exceeding 20.
For all data, the answer should only contain lowercase letters (ASCII 97–122), digits (ASCII 48–57), and hyphens (ASCII 45).
- For test case 1: Guaranteed to be from the main library.
- For test case 2: Guaranteed to be from the beginner and interview sections.
- For test cases 3–4: Guaranteed to be from CodeForces.
- For test cases 5–6: Guaranteed to be from SPOJ.
- For test cases 7–8: Guaranteed to be from AtCoder.
- For test cases 9–10: Guaranteed to be from UVA.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分