import sys

for i in sys.stdin:
    print(len(str(sum(map(int,i.replace("\n", "").split(" ")))))) import sys sys for i in sys.stdin:
    print(len(str(sum(map(int,i.replace("\n", "").split(" ")))))) i sys.stdin sys stdin print(len(str(sum(map(int,i.replace("\n", "").split(" ")))))) print len(str(sum(map(int,i.replace("\n", "").split(" "))))) len str(sum(map(int,i.replace("\n", "").split(" ")))) str sum(map(int,i.replace("\n", "").split(" "))) sum map(int,i.replace("\n", "").split(" ")) map int i.replace("\n", "").split(" ") i.replace("\n", "").split i.replace("\n", "") i.replace i replace "\n" "" split " "
import sys

for i in sys.stdin:
    print(len(str(sum(map(int,i.replace("\n", "").split(" "))))))