#include <bits/stdc++.h>
using namespace std;
bool flag(char c){
return (c==' ' || c=='\t' || c=='\r' || c=='\n');
}
int main()
{
char s[105]={0};
while(gets(s)){
if(s[0]<65 || s[0]>90)
s[0]-=32;
for(int i=1; i<strlen(s); i++){
while(flag(s[i])){
...