import sys
import math
for line in sys.stdin:
    line = line.strip()
    print int(math.log10(int(line[:line.find(' ')]) + int(line[line.find(' ') + 1:])))+1 import sys sys import math math for line in sys.stdin:
    line = line.strip()
    print int(math.log10(int(line[:line.find(' ')]) + int(line[line.find(' ') + 1:])))+1 line sys.stdin sys stdin line = line.strip() line line.strip() line.strip line strip print int(math.log10(int(line[:line.find(' ')]) + int(line[line.find(' ') + 1:])))+1 int(math.log10(int(line[:line.find(' ')]) + int(line[line.find(' ') + 1:]))) int math.log10(int(line[:line.find(' ')]) + int(line[line.find(' ') + 1:])) math.log10 math log10 int(line[:line.find(' ')]) + int(line[line.find(' ') + 1:]) int(line[:line.find(' ')]) int line[:line.find(' ')] line :line.find(' ') line.find(' ') line.find line find ' ' int(line[line.find(' ') + 1:]) int line[line.find(' ') + 1:] line line.find(' ') + 1: line.find(' ') + 1 line.find(' ') line.find line find ' ' 1 1 line = line.strip() line.strip() line
import sys
import math
for line in sys.stdin:
    line = line.strip()
    print int(math.log10(int(line[:line.find(' ')]) + int(line[line.find(' ') + 1:])))+1