#K37517. Camel Case to Sentence Conversion

    ID: 25994 Type: Default 1000ms 256MiB

Camel Case to Sentence Conversion

Camel Case to Sentence Conversion

Given a string in camelCase format, your task is to convert it into a space-separated sentence with proper capitalization. The conversion rules are as follows:

  • Insert a space before each uppercase letter in the string.
  • Convert all letters to lowercase, except the first character of the final sentence, which must be uppercase.

For example, if the input is helloWorld, the correct output would be Hello world.

This problem tests your ability to process strings and handle character-by-character manipulation.

inputFormat

The input consists of a single non-empty string in camelCase format provided via standard input (stdin).

outputFormat

Output the transformed string. The output should be printed to standard output (stdout) as a single line containing the sentence with correct spacing and capitalization.## sample

helloWorld
Hello world