#include<iostream>
using namespace std;
 
void digitLength()
{
    int a = 5;
    int b = 7;
    int len = 1;
    int div;
    
    int var = a+b;
    
    while(1)
    {
        div = var / 10;
        
        if(div == 0)
            break;
        var = div;
        len++;
        
    }
    
    cout<<len;
    return;
}
 
 
int main(){
 
    digitLength();
    return 0;
}