import sys
import math

for line in sys.stdin:
    l = line.split()
    digit = int(math.log10(int(l[0]) + int(l[1]))) + 1
    print(digit) import sys sys import math math for line in sys.stdin:
    l = line.split()
    digit = int(math.log10(int(l[0]) + int(l[1]))) + 1
    print(digit) line sys.stdin sys stdin l = line.split() l line.split() line.split line split digit = int(math.log10(int(l[0]) + int(l[1]))) + 1 digit int(math.log10(int(l[0]) + int(l[1]))) + 1 int(math.log10(int(l[0]) + int(l[1]))) int math.log10(int(l[0]) + int(l[1])) math.log10 math log10 int(l[0]) + int(l[1]) int(l[0]) int l[0] l 0 int(l[1]) int l[1] l 1 1 print(digit) print digit l = line.split() line.split() l digit = int(math.log10(int(l[0]) + int(l[1]))) + 1 int(math.log10(int(l[0]) + int(l[1]))) + 1 digit
import sys
import math

for line in sys.stdin:
    l = line.split()
    digit = int(math.log10(int(l[0]) + int(l[1]))) + 1
    print(digit)