#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
int i;
char a[110];
while(gets(a))
{
printf("%c",a[0]-32);
for(i=1;i<strlen(a);i++)
{
if(a[i-1]==' ')
{
a[i]=a[i]-32;
}
printf("%c",a[i]);
}
printf("
");
}
return 0;
}