#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 nn, indicating that there are nn drug names to be standardized, where nn does not exceed 100100.
The next nn lines each contain a word with a length not exceeding 2020, representing the drug names written by the doctor. Drug names consist of letters, digits, and hyphens.

Output Format

nn lines, each containing a word, corresponding to the standardized form of the input drug names.

Sample

4
AspiRin
cisapride
2-PENICILLIN
Cefradine-6
Aspirin
Cisapride
2-penicillin
Cefradine-6