#P403. 练69.3 整理药名
练69.3 整理药名
Description
Doctors often pay little attention to capitalization when writing drug names, resulting in inconsistent formatting. You are required to write a program to standardize the drug names written by doctors into a uniform format, where the first character of the drug name is capitalized if it is a letter, and all other letters are lowercase. For example, "ASPIRIN" and "aspirin" should be standardized to "Aspirin".
Input Format
The first line contains a number , indicating that there are drug names to be standardized, where does not exceed .
The next lines each contain a word with a length not exceeding , representing the drug names written by the doctor. Drug names consist of letters, digits, and hyphens.
Output Format
lines, each containing a word, corresponding to the standardized form of the input drug names.
Sample
4
AspiRin
cisapride
2-PENICILLIN
Cefradine-6Aspirin
Cisapride
2-penicillin
Cefradine-6
Related
In following homework: