n=input()
new_n=n.title()
list1=[]
for i in new_n.split(" "):
    list1.append(i[0])
print("".join(list1))