def capitalise():
global words
i=0
for elem in words:
if i == 0:
elem = ord(elem) - 32
elem = chr(elem)
words.replace(words[i], elem)
if elem == " ":
i = -1
i+=1
return words
words = input()
capitalise()