str = input();
str = str.strip()
li = str.split(" ");
for s in li:
   if len(s) != 0:
    s = s[0].upper();
    print(s,end='')

/**************************************************************
	Problem: 1100
	User: admin
	Language: Python
	Result: Accepted
	Time:173 ms
	Memory:34244 kb
****************************************************************/