#C10. Capitalize Words

    ID: 39155 Type: Default 1000ms 256MiB

Capitalize Words

Capitalize Words

Given a string, transform it so that the first character of each word is in uppercase and the remaining characters are in lowercase. Words are defined as sequences of characters separated by single spaces. Punctuation marks and numbers should remain as they appear, except for the letter case adjustments. For example, the input string "hello world! it's a beautiful day." should be transformed to "Hello World! It's A Beautiful Day."

Note: The solution should read input from standard input (stdin) and write the output to standard output (stdout).

inputFormat

The input consists of a single line from standard input (stdin) containing the string to be processed. Words within the string are separated by single spaces and the string may include punctuation marks or numerical characters.

outputFormat

Output the transformed string to standard output (stdout) where each word starts with an uppercase letter followed by lowercase letters.

## sample
hello world! it's a beautiful day.
Hello World! It's A Beautiful Day.