2568. Sum of digit

Naive编程基础输入输出循环

时间限制:2000 ms

内存限制:256 MiB

题面

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

输入格式

The first line of input gives the number of cases, N(1N100)N(1 \leqslant N \leqslant 100). NN test cases follow.

Each test case consists of two integers aa and bb which are separeted by a space in a line. (0a,b100000000)(0 \leqslant a,b \leqslant 100000000).

输出格式

For each test case, print the number of digits of a+ba + b.

样例

输入

3
5 7
1 99
1000 999

输出

2
3
4