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 PHP (judge verdict: Wrong Answer)

<?php

$input = fgets(STDIN);
$input = split(" ", $input);

$a = (int)$input[0];
$b = (int)$input[1];

$sum = $a + $b;
$con = 0;
while($sum>=1){
    $sum /= 10;
    $con++;
}
$input1 = fgets(STDIN);
$input1 = split(" ", $input1);

$a1 = (int)$input1[0];
$b1 = (int)$input1[1];

$sum1 = $a1 + $b1;
$con1 = 0;
while($sum1>=1){
    $sum1 /= 10;
    $con1++;
}
$input2 = fgets(STDIN);
$input2 = split(" ", $input2);

$a2 = (int)$input2[0];
$b2 = (int)$input2[1];

$sum2 = $a2 + $b2;
$con2 = 0;
while($sum2>=1){
    $sum2 /= 10;
    $con2++;
}

//var_dump($con);
echo $con . PHP_EOL;
echo $con1 . PHP_EOL;
echo $con2 . PHP_EOL;