#B2117. Standardize Medicine Name
Standardize Medicine Name
Standardize Medicine Name
The problem requires you to standardize the format of a medicine name. Doctors sometimes write medicine names in a messy manner regarding letter casing. You need to convert the medicine name so that if the first character is an alphabet, it is converted to uppercase, and all the remaining letters are converted to lowercase.
For example, both ASPIRIN
and aspirin
should be converted to Aspirin
.
inputFormat
The input consists of a single line containing a non-empty string representing a medicine name. The string may include letters and other characters. If the first character is a letter, apply the formatting as described.
outputFormat
Output a single line: the standardized medicine name, where the first letter (if an alphabetical character) is uppercase and all subsequent alphabetical characters are lowercase.
sample
ASPIRIN
Aspirin