#include <iostream>
#include<cstdio>
using namespace std;
int main()
{
    char a,b;
    while(a=getchar() && a!=EOF){
        cin>>b;
        int sum=0,c=a+b-96;
        while(c!=0){
            c=c/10;
            sum++;
        }
        cout<<sum<<endl;
    }
    return 0;
}

