#include<iostream> #include<string.h> using namespace std; int main() { string s; while (cin >> s) { if (s[s.size() - 1] != '.')cout << s.size() << " "; else cout << s.size() - 1 << " "; } return 0; }