#include<iostream>
#include<cstdlib>
using namespace std ;
int main()
{
char temp ;
int flag = 1 ;
while(scanf("%c",&temp)!=EOF)
{
if(flag == 1 )
{
if(temp>='A'&&temp<='Z')
{
printf("%c",temp);
flag = 0 ;
}
else printf("%c",temp);
}
else
{
if(temp>='A'&&temp<='Z')
printf("%c",temp+32);
else if(temp=='.'||temp=='?'||temp=='!')
{
printf("%c",temp);
flag =1 ;
}
else printf("%c",temp);
}
}
system("pause");
return 0 ;
}
|