#include<iostream>
#include<string>
#include<cmath>
#include <fstream>
using namespace std;

int main()
{
        string input;
        string hoge;
        string fuga;
        string piyo;
        long first, second;
        int size = 0;
        int i;
        long sum = 0;
        double sep = 0;

        cout << "input two numbers" << endl;
        cin >> input;
        size = input.size();
        i = input.find(" ");
        hoge = input.substr(0,i - 1);
        fuga = input.substr(i + 1);
        first = stoi(hoge);
        second = stoi(fuga);
        sum = first + second;
        piyo = to_string(sum);
        size = piyo.size();
        cout << size << endl;
}
~                                                                                                                                                                                                 
~                                                                                                                                                                                                 
~                                                                                                                                                                                                 
~                                                                                                                                                                                                 
~                                                       