#C13890. Capitalize Sentence

    ID: 43478 Type: Default 1000ms 256MiB

Capitalize Sentence

Capitalize Sentence

Given a sentence, transform it so that each word starts with an uppercase letter followed by all lowercase letters. The sentence may contain punctuation and extra spaces. Your task is to process the sentence by splitting on whitespace, capitalizing each word, and then joining them with a single space. For example, an input of "hello world" should produce an output of "Hello World".

Note: Any extra spaces in the input should be removed in the output.

inputFormat

The input consists of a single line containing the sentence.

outputFormat

Output a single line: the transformed sentence where each word is capitalized and extra spaces are removed.

## sample
hello world
Hello World