#include <stdio.h>
int main(void){
char ch;
int world=1;//先定义一个变量,默认为首个字母
while((ch=getchar())!='\n'){
if(world==1 && ch<='z' && ch>='a'){
ch=ch-'a'+'A';
}
if(ch==' '){
world=1;
}else{
world=0;
}
putchar(ch);
}
return 0;
}