#include
int main(){
char English[100]="I am a student.";
printf("%d",max(English));
return 0;
}
int max(char ch[100]){
int maxlength =0,i=0,length=0;
while(ch[i]!='.'){
if(ch[i]!=' '){
length++;
if(maxlength
}else
length=0;
i++;
}
return maxlength;
}
#include
#include
#define gets(S) fgets(S,sizeof(S),stdin)
#define N 1000
int main(){
int i,cnt=0,l,n,max=0;
char s[N];
gets(s);
l=strlen(s);
for(i=0;i
if(s[i]==' ')cnt=0;
if(s[i+1]==' '||s[i+1]=='.'){
if(cnt>max)max=cnt;
}
}
printf("%d",max);
}