#coding: utf-8

import sys

for line in sys.stdin:
    l = map(int,line.split())
    n = l[0] + l[1]
    print len(str(n)) import sys sys for line in sys.stdin:
    l = map(int,line.split())
    n = l[0] + l[1]
    print len(str(n)) line sys.stdin sys stdin l = map(int,line.split()) l map(int,line.split()) map int line.split() line.split line split n = l[0] + l[1] n l[0] + l[1] l[0] l 0 l[1] l 1 print len(str(n)) len str(n) str n n = l[0] + l[1] l[0] + l[1] n l = map(int,line.split()) map(int,line.split()) l
#coding: utf-8

import sys

for line in sys.stdin:
    l = map(int,line.split())
    n = l[0] + l[1]
    print len(str(n))