#include<iostream> #include<cstring> using namespace std; int main(){ char a[200]; cin>>a; while(a!="/0"){ cout<<strlen(a); } return 0; }