#C112. Capitalize Words
Capitalize Words
Capitalize Words
You are given a sentence that may be in lower case or a mix of cases. Your task is to convert the sentence so that the first letter of each word is in uppercase and the rest of the letters are in lowercase.
For example, if the input is "hello world", the output should be "Hello World". Your solution must read the input from stdin
and output the result to stdout
.
inputFormat
The input consists of a single line containing a sentence. The sentence will have one or more words separated by a single space.
outputFormat
Output the sentence after converting each word so that its first letter is uppercase and all other letters are lowercase.
## samplehello
Hello