#include <bits/stdc++.h> using namespace std; int main(){ vector<string> data; string s,sub; bool flag = true; while(flag){ cin>>s; if(s[s.size()-1] != '.') sub = s; else{ sub = s.substr(0,s.size()-1); flag = false; } data.push_back(sub); } for(int i = 0; i < data.size(); i++) cout<<data[i].size()<<" "; }