#https://www.hackerrank.com/contests/pythonist3/challenges/capitalize

S = input()
out = ""
isSpace = True

for e in S:
    if isSpace:
        e = e.upper()
        isSpace = False
    if e == " ":
        isSpace = True
    out += e
print(out)
