import sys
if __name__ == "__main__":
    for i in sys.stdin:
        a,b = list(map(int,i.strip().split()))
        print(len(str(a+b))) import sys sys if __name__ == "__main__":
    for i in sys.stdin:
        a,b = list(map(int,i.strip().split()))
        print(len(str(a+b))) __name__ == "__main__" __name__ "__main__" for i in sys.stdin:
        a,b = list(map(int,i.strip().split()))
        print(len(str(a+b))) i sys.stdin sys stdin a,b = list(map(int,i.strip().split())) a list(map(int,i.strip().split())) list map(int,i.strip().split()) map int i.strip().split() i.strip().split i.strip() i.strip i strip split b print(len(str(a+b))) print len(str(a+b)) len str(a+b) str a+b a b a,b = list(map(int,i.strip().split())) list(map(int,i.strip().split())) a b = list(map(int,i.strip().split())) list(map(int,i.strip().split())) b
import sys
if __name__ == "__main__":
    for i in sys.stdin:
        a,b = list(map(int,i.strip().split()))
        print(len(str(a+b)))