import sys

if __name__ == '__main__':
    for line in sys.stdin:
        (x,y) = map(int,line.split())
        print(len(str(x+y))) import sys sys if __name__ == '__main__':
    for line in sys.stdin:
        (x,y) = map(int,line.split())
        print(len(str(x+y))) __name__ == '__main__' __name__ '__main__' for line in sys.stdin:
        (x,y) = map(int,line.split())
        print(len(str(x+y))) line sys.stdin sys stdin (x,y) = map(int,line.split()) (x,y) x y map(int,line.split()) map int line.split() line.split line split print(len(str(x+y))) print len(str(x+y)) len str(x+y) str x+y x y
import sys

if __name__ == '__main__':
    for line in sys.stdin:
        (x,y) = map(int,line.split())
        print(len(str(x+y)))