LogiQuest

91. Capitalise Each Word

EasyString

Capitalise the first letter of each word and make the remaining letters lowercase. Words are separated by single spaces.

Input format

A single line of words.

Output format

The capitalised line.

Example 1

Input

hello world

Output

Hello World

Example 2

Input

mYlOGINN coding PRACTICE

Output

Myloginn Coding Practice

Constraints

1 ≤ |s| ≤ 10⁵

Read input from standard input and print the answer to standard output. Your code is judged against 4 test cases, most of them hidden.

Loading the MyLoginn IDE…