from sys import stdin
import math
import fileinput

for line in fileinput.input():
    a, b = [int(n) for n in line.split()]
    print(math.floor(math.log10(a + b) + 1))
    # x1, y1, x2, y2, x3, y3, xp, yp = [float(r) for r in line]
    # print(x1, y1, x2, y2, x3, y3, xp, yp) from sys import stdin import math math import fileinput fileinput for line in fileinput.input():
    a, b = [int(n) for n in line.split()]
    print(math.floor(math.log10(a + b) + 1))
    # x1, y1, x2, y2, x3, y3, xp, yp = [float(r) for r in line]
    # print(x1, y1, x2, y2, x3, y3, xp, yp) line fileinput.input() fileinput.input fileinput input int(n) for n in line.split() for n in line.split() n line.split() line.split line split for n in line.split() int(n) int n a, b = [int(n) for n in line.split()] a [int(n) for n in line.split()] b print(math.floor(math.log10(a + b) + 1)) print math.floor(math.log10(a + b) + 1) math.floor math floor math.log10(a + b) + 1 math.log10(a + b) math.log10 math log10 a + b a b 1 a, b = [int(n) for n in line.split()] [int(n) for n in line.split()] a b = [int(n) for n in line.split()] [int(n) for n in line.split()] b
from sys import stdin
import math
import fileinput

for line in fileinput.input():
    a, b = [int(n) for n in line.split()]
    print(math.floor(math.log10(a + b) + 1))
    # x1, y1, x2, y2, x3, y3, xp, yp = [float(r) for r in line]
    # print(x1, y1, x2, y2, x3, y3, xp, yp)