#include <stdio.h>
int main() {
//char a[1000]={0};
char temp;
int temp1=0;
int length=0;
int inta[100]={0};
while(1){
scanf("%c",&temp);
if(temp=='.'){inta[length]=temp1;length++;break;}
else{
if(temp==' '){inta[length]=temp1;length++;temp1=0;}
else{temp1++;}
}
}
for(int i=0;i<length;i++){
printf("%d ",inta[i]);
}
return 0;
}

京公网安备 11010502036488号