import sys
from operator import add

for i in sys.stdin:
    print(len(str(add(*list(map(int, i.split())))))) import sys sys from operator import add for i in sys.stdin:
    print(len(str(add(*list(map(int, i.split())))))) i sys.stdin sys stdin print(len(str(add(*list(map(int, i.split())))))) print len(str(add(*list(map(int, i.split()))))) len str(add(*list(map(int, i.split())))) str add(*list(map(int, i.split()))) add *list(map(int, i.split())) list(map(int, i.split())) list map(int, i.split()) map int i.split() i.split i split
import sys
from operator import add

for i in sys.stdin:
    print(len(str(add(*list(map(int, i.split()))))))