cs
#include<stdio.h>
#include<ctype.h>
void main()
{
char s[100]="0";
int i;
while (fgets(s,sizeof(s),stdin))
{
i = 0;
while (s[i]!='\0')
{
if (i == 0)s[0] = toupper(s[0]);
else if (s[i - 1] == ' ' && s[i] != ' ')s[i] = toupper(s[i]);
i++;
}
printf("%s", s);
}
}