#85Easy
Capitalise every word
Time: 1 s · Memory: 256 MB
- Strings
Statement
You are given a line whose words are separated by single spaces. If the first character of a word is a lowercase Latin letter, replace it with the uppercase letter. The rest of the word and words that do not start with a letter stay the same.
Input format
A single line — a string of to ASCII characters. Words are separated by single spaces; there are no spaces at the start or the end.
Output format
The changed string.
Examples
Input
assalomu alaykum bo'lajak dasturchilar!
Output
Assalomu Alaykum Bo'lajak Dasturchilar!
Input
binary uz 2026
Output
Binary Uz 2026
Note
A word starts at the first character of the line or right after a space. aLREADY → ALREADY: only the first letter changes, there is no need to lowercase the rest. In the first example: Assalomu Alaykum Bo'lajak Dasturchilar!.
