s=str(input())
s=s.strip()
x=s.split()
x=[i.lower() for i in x]
x=[i.capitalize() for i in x]
y=" ".join(x)
print(y)
cz1zdHIoaW5wdXQoKSkKcz1zLnN0cmlwKCkKeD1zLnNwbGl0KCkKeD1baS5sb3dlcigpIGZvciBpIGluIHhdCng9W2kuY2FwaXRhbGl6ZSgpIGZvciBpIGluIHhdCnk9IiAiLmpvaW4oeCkKcHJpbnQoeSk=