#include <stdio.h>
// 考虑了多个空格
int main() {
char str[50];
while(scanf("%s", str) != EOF){
int i=0;
while(str[i] != '\0')
i++;
if(str[i-1] == '.')
printf("%d ", i-1);
else
printf("%d ", i);
}
return 0;
}

京公网安备 11010502036488号