# coding: utf-8
import sys

N = sys.stdin.read().splitlines()

for n in N:
    i, j = [int(i) for i in n.split()]
    print(len(str(i+j))) import sys sys N = sys.stdin.read().splitlines() N sys.stdin.read().splitlines() sys.stdin.read().splitlines sys.stdin.read() sys.stdin.read sys.stdin sys stdin read splitlines for n in N:
    i, j = [int(i) for i in n.split()]
    print(len(str(i+j))) n N int(i) for i in n.split() for i in n.split() i n.split() n.split n split for i in n.split() int(i) int i i, j = [int(i) for i in n.split()] i [int(i) for i in n.split()] j print(len(str(i+j))) print len(str(i+j)) len str(i+j) str i+j i j N = sys.stdin.read().splitlines() sys.stdin.read().splitlines() N i, j = [int(i) for i in n.split()] [int(i) for i in n.split()] i j = [int(i) for i in n.split()] [int(i) for i in n.split()] j
# coding: utf-8
import sys

N = sys.stdin.read().splitlines()

for n in N:
    i, j = [int(i) for i in n.split()]
    print(len(str(i+j)))