import sys
from operator import add
from math import log10

for i in sys.stdin:
    print(int(log10(add(*list(map(int, i.split()))))) + 1) import sys sys from operator import add from math import log10 for i in sys.stdin:
    print(int(log10(add(*list(map(int, i.split()))))) + 1) i sys.stdin sys stdin print(int(log10(add(*list(map(int, i.split()))))) + 1) print int(log10(add(*list(map(int, i.split()))))) + 1 int(log10(add(*list(map(int, i.split()))))) int log10(add(*list(map(int, i.split())))) log10 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 1
import sys
from operator import add
from math import log10

for i in sys.stdin:
    print(int(log10(add(*list(map(int, i.split()))))) + 1)