import math
import sys
for line in sys.stdin:
    a,b = map(int, line.split())
    print(int(math.log10(a+b) + 1)) import math math import sys sys for line in sys.stdin:
    a,b = map(int, line.split())
    print(int(math.log10(a+b) + 1)) line sys.stdin sys stdin a,b = map(int, line.split()) a map(int, line.split()) map int line.split() line.split line split b print(int(math.log10(a+b) + 1)) print int(math.log10(a+b) + 1) int math.log10(a+b) + 1 math.log10(a+b) math.log10 math log10 a+b a b 1 b = map(int, line.split()) map(int, line.split()) b a,b = map(int, line.split()) map(int, line.split()) a
import math
import sys
for line in sys.stdin:
    a,b = map(int, line.split())
    print(int(math.log10(a+b) + 1))