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:
'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
import sys
s=raw_input()
s=str(s)

d=[]
if s[0]!=" ":
	if ord(s[0])>=92:
		d.append(chr(ord(s[0])-32))
		
	
	else:
		d.append(s[0])
		
		
		

for j in xrange(1,len(s)):
	if s[j]!=" " and s[j-1]==" ":
		if ord(s[j])>=92:
			d.append(chr(ord(s[j])-32))
		else:
			d.append(s[j])
	else:
		d.append(s[j])
print "".join(d)