import sys,math
for i in sys.stdin.readlines():
    if not i.strip():break
    a, b = map(int, i.split())
    print int(math.log10(a+b))+1 import sys,math sys math for i in sys.stdin.readlines():
    if not i.strip():break
    a, b = map(int, i.split())
    print int(math.log10(a+b))+1 i sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines if not i.strip():break
     not i.strip() i.strip() i.strip i strip a, b = map(int, i.split()) a map(int, i.split()) map int i.split() i.split i split b print int(math.log10(a+b))+1 int(math.log10(a+b)) int math.log10(a+b) math.log10 math log10 a+b a b 1 a, b = map(int, i.split()) map(int, i.split()) a b = map(int, i.split()) map(int, i.split()) b
import sys,math
for i in sys.stdin.readlines():
    if not i.strip():break
    a, b = map(int, i.split())
    print int(math.log10(a+b))+1