import sys
a=[map(int,i.split()) for i in sys.stdin]
[print(len(str(b+c))) for b,c in a] import sys sys map(int,i.split()) for i in sys.stdin for i in sys.stdin i sys.stdin sys stdin for i in sys.stdin map(int,i.split()) map int i.split() i.split i split a=[map(int,i.split()) for i in sys.stdin] a [map(int,i.split()) for i in sys.stdin] print(len(str(b+c))) for b,c in a for b,c in a b c a for b,c in a print(len(str(b+c))) print len(str(b+c)) len str(b+c) str b+c b c [print(len(str(b+c))) for b,c in a] a=[map(int,i.split()) for i in sys.stdin] [map(int,i.split()) for i in sys.stdin] a
import sys
a=[map(int,i.split()) for i in sys.stdin]
[print(len(str(b+c))) for b,c in a]