#C7. Capitalize Every Word

    ID: 50821 Type: Default 1000ms 256MiB

Capitalize Every Word

Capitalize Every Word

You are given a string s consisting of one or more words. Your task is to transform the string so that the first letter of each word is in uppercase and all the remaining letters are in lowercase.

For example, if the input is hello world, the output should be Hello World. This problem tests your ability to perform string manipulation and formatting.

Note: A word is defined as a sequence of non-space characters. You must preserve the spaces between words.

inputFormat

The input consists of a single line that contains the string s. The string may contain letters in mixed case and spaces.

outputFormat

Output a single line containing the transformed string where each word starts with an uppercase letter and the remaining characters are in lowercase.

## sample
hello world
Hello World