using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string[] numbers=input.Split(' ');
            int  answer = Convert.ToInt16(numbers[0] + numbers[1]);
            string amswer1 = Convert.ToString(answer);
            Console.WriteLine((amswer1.Length)+1);
        }
    }
}