#include<bits/stdc++.h> using namespace std; int main(){ int a=0; char b; while(cin>>b) a++; cout<<a<<endl; return 0 }