///字符串最后一个单词的长度 #include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin>>s); cout<<s.length(); return 0; }