#C14329. Title Case Conversion
Title Case Conversion
Title Case Conversion
Given an input string, convert it to title case. Title case means that the first letter of each word is capitalized and all the other letters are in lowercase. Words are defined as substrings separated by the space character, and any multiple spaces present in the input need to be preserved. Punctuation does not affect the casing of the letters.
For example, if the input is hello world!
, then the output should be Hello World!
.
You are required to read the input from stdin and output the result to stdout.
inputFormat
The input consists of a single line containing a string. The string may include letters, punctuation marks, and multiple spaces. Input is provided via standard input.
outputFormat
Output the converted title-cased string to standard output.
## samplehello
Hello