Problem:
Digit Number

Write a program which computes the digit number of sum of two integers a and b.

Input

There are several test cases. Each test case consists of two non-negative integers a and b which are separeted by a space in a line. The input terminates with EOF.

Constraints

0 ≤ a, b ≤ 1,000,000

The number of datasets ≤ 200

Output

Print the number of digits of a + b for each data set.

Sample Input

5 7
1 99
1000 999

Output for the Sample Input

2
3
4

Solution in C# (judge verdict: Wrong Answer)

using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            while (true)
            {
                string a = Console.ReadLine();
                char c ;
                char.TryParse(a, out c);
                if(c == '\0')
                    break;
                string[] aa = a.Split();
                int data1 = int.Parse(aa[0]);
                int data2 = int.Parse(aa[1]);

                int data0 = data1 + data2;

                int count = 1;
                while (true)
                {

                    data0 /= 10;
                    if (data0 != 0)
                        count++;
                    else
                        break;
                }
                Console.WriteLine(count);
            }
            Console.ReadLine();
            //int[] ans = { 0, 0, 0 };
            //for (int i = 0; i < 10; i++)
            //{
            //    string a = Console.ReadLine();
            //    int aa = int.Parse(a);

            //    if (ans[0] < aa)
            //    {
            //        ans[2] = ans[1];
            //        ans[1] = ans[0];
            //        ans[0] = aa;
            //    }
            //    else if (ans[1] < aa)
            //    {
            //        ans[2] = ans[1];
            //        ans[1] = aa;
            //    }
            //    else if (ans[2] < aa)
            //    {
            //        ans[2] = aa;
            //    }
            //}

            //Console.WriteLine(ans[0]);
            //Console.WriteLine(ans[1]);
            //Console.WriteLine(ans[2]);
            //Console.ReadLine();

            //    for (int i = 1; i <= 9; i++)
            //    {
            //        for (int ii = 1; ii <= 9; ii++)
            //        {
            //            string ans;
            //            ans = i+"x"+ii+"="+i*ii;
            //            Console.WriteLine(ans);

            //        }

            //    }
            //            Console.ReadLine();        }
        }
    }
}