#K69987. Convert Sentence to CamelCase

    ID: 33208 Type: Default 1000ms 256MiB

Convert Sentence to CamelCase

Convert Sentence to CamelCase

You are given a sentence in which words are separated by spaces. Your task is to convert this sentence into CamelCase format. In CamelCase formatting, the first character of each word is capitalized and all words are concatenated together without any spaces or punctuation adjustments (except for the standard behavior of capitalization).

Note: Only the first letter of each word should be capitalized and the rest should be in lowercase, regardless of their original case.

For example:

  • Input: hello world from python → Output: HelloWorldFromPython
  • Input: convert THIS to CaMeL case → Output: ConvertThisToCamelCase

inputFormat

The input is provided from stdin as a single line of text, which may contain leading, trailing, or extra spaces between words. The entire line represents the sentence to be converted.

outputFormat

The output should be written to stdout and must be the CamelCase conversion of the given sentence, with all the words concatenated and each word starting with an uppercase letter.

## sample
hello world from python
HelloWorldFromPython