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

SAMPLE INPUT
Wish you were here

SAMPLE OUTPUT
Wish You Were Here

Solution (in PYTHON):

Solution:
strg=''
s=raw_input()
l = len(s)
i=0
while i<l:
    if s[i]==' ':
        strg=strg + s[i]
        i+=1
    else:
        r=s.find(' ',i)
        if r==-1:
            r=l
        x=''
        a=ord(s[i])
        if a>=97 and a<=122:
            a=a-32
            x=chr(a)+s[i+1:r]
            
        else:
            x=s[i:r]
        strg = strg + x
        i=r
print strg