import sys
from math import log10, floor
print('\n'.join(map(str, [floor(log10(sum(map(int, ab.split())))) + 1 for ab in sys.stdin]))) import sys sys from math import log10, floor floor(log10(sum(map(int, ab.split())))) + 1 for ab in sys.stdin for ab in sys.stdin ab sys.stdin sys stdin for ab in sys.stdin floor(log10(sum(map(int, ab.split())))) + 1 floor(log10(sum(map(int, ab.split())))) floor log10(sum(map(int, ab.split()))) log10 sum(map(int, ab.split())) sum map(int, ab.split()) map int ab.split() ab.split ab split 1 print('\n'.join(map(str, [floor(log10(sum(map(int, ab.split())))) + 1 for ab in sys.stdin]))) print '\n'.join(map(str, [floor(log10(sum(map(int, ab.split())))) + 1 for ab in sys.stdin])) '\n'.join '\n' join map(str, [floor(log10(sum(map(int, ab.split())))) + 1 for ab in sys.stdin]) map str [floor(log10(sum(map(int, ab.split())))) + 1 for ab in sys.stdin]
import sys
from math import log10, floor
print('\n'.join(map(str, [floor(log10(sum(map(int, ab.split())))) + 1 for ab in sys.stdin])))