#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
vector<string>v;
while(cin>>s){
if(s.find('.')!=-1)
s = s.substr(0,s.length()-1);
v.push_back(s);
}
for(auto a:v)
// cout<<a<<endl;
cout<<a.length()<<" ";
}
// 64 位输出请用 printf("%lld")
不要用getline

京公网安备 11010502036488号