#include <bits/stdc++.h>
using namespace std;
int main()
{
string str1,str2;
while (cin >> str1)
str2 = str1;
cout << str2.size() << endl;
return 0;
} 
#include <bits/stdc++.h>
using namespace std;
int main()
{
string str1,str2;
while (cin >> str1)
str2 = str1;
cout << str2.size() << endl;
return 0;
}