#include <iostream>
#include <string>

using namespace std;
 int main()
 {
     string s;
     while(cin>>s)
     {
     }
     cout<<s.length();
     return 0;
 }