#include <iostream>
#include <vector>
using namespace std;
int main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
vector<char> imie;
char akt_znak_imie;
while(cin>>akt_znak_imie);
imie.push_back(akt_znak_imie);
cout<<imie.size();
/*
for(int i=0;i<imie.size();i++)
cout<<imie[i];
for(int i=1;i<imie.size() - 1;i++)
imie[i]='*';
for(int i=0;i<imie.size();i++)
cout<<imie[i];
*/
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKXsKICAgIAogICAgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbygwKTsKICAgIGNpbi50aWUoMCk7CiAgICBjb3V0LnRpZSgwKTsKICAgIAogICAgdmVjdG9yPGNoYXI+IGltaWU7CiAgICBjaGFyIGFrdF96bmFrX2ltaWU7CiAgICB3aGlsZShjaW4+PmFrdF96bmFrX2ltaWUpOwogICAgaW1pZS5wdXNoX2JhY2soYWt0X3puYWtfaW1pZSk7CiAgICBjb3V0PDxpbWllLnNpemUoKTsKICAgIC8qCiAgICBmb3IoaW50IGk9MDtpPGltaWUuc2l6ZSgpO2krKykKICAgIGNvdXQ8PGltaWVbaV07CiAgICBmb3IoaW50IGk9MTtpPGltaWUuc2l6ZSgpIC0gMTtpKyspCiAgICBpbWllW2ldPScqJzsKICAgIAogICAgZm9yKGludCBpPTA7aTxpbWllLnNpemUoKTtpKyspCiAgICBjb3V0PDxpbWllW2ldOwogICAgKi8KfQ==