UpUp

3.5

84 votes
Approved, Easy, Open
Problem

You are given a string S. S consists of several words separated by one or more spaces. Word consists of Latin letters as well as other symbols (but not spaces).
In each word which starts from lowercase Latin letter replace starting letter with uppercase Latin letter.

Input
The only line contains S

Output
Output one line with modified string S.

Constraints
1 <= length of S <= 30 000

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?