import sys
from math import log10
for line in sys.stdin:
    (a, b) = [int(i) for i in line.split()]
    print(len(str(a + b))) import sys sys from math import log10 for line in sys.stdin:
    (a, b) = [int(i) for i in line.split()]
    print(len(str(a + b))) line sys.stdin sys stdin int(i) for i in line.split() for i in line.split() i line.split() line.split line split for i in line.split() int(i) int i (a, b) = [int(i) for i in line.split()] (a, b) a b [int(i) for i in line.split()] print(len(str(a + b))) print len(str(a + b)) len str(a + b) str a + b a b
import sys
from math import log10
for line in sys.stdin:
    (a, b) = [int(i) for i in line.split()]
    print(len(str(a + b)))