#include<bits/stdc++.h>
using namespace std;
int main() {
string s, t;
while (getline(cin, s)) {
for (int i = 0; i < s.size(); i++) {
if (s[i] == ' ') {
continue;
} else {
t += s[i];
if (s[i + 1] == ' ' || s[i + 1] == '.') {
cout << t.size() << " ";
t.clear();
}
}
}
cout << endl;
}
return 0;
}



京公网安备 11010502036488号