from sys import stdin

for s in stdin:
    s = s[:-1]
    i = s.index(' ')
    a = int(s[0:i])
    s = s[i+1:]
    b = int(s)
    print len(str(a+b)) from sys import stdin for s in stdin:
    s = s[:-1]
    i = s.index(' ')
    a = int(s[0:i])
    s = s[i+1:]
    b = int(s)
    print len(str(a+b)) s stdin s = s[:-1] s s[:-1] s :-1 -1 i = s.index(' ') i s.index(' ') s.index s index ' ' a = int(s[0:i]) a int(s[0:i]) int s[0:i] s 0:i 0 i s = s[i+1:] s s[i+1:] s i+1: i+1 i 1 b = int(s) b int(s) int s print len(str(a+b)) len str(a+b) str a+b a b s = s[:-1] s[:-1] s i = s.index(' ') s.index(' ') i a = int(s[0:i]) int(s[0:i]) a s = s[i+1:] s[i+1:] s b = int(s) int(s) b
from sys import stdin

for s in stdin:
    s = s[:-1]
    i = s.index(' ')
    a = int(s[0:i])
    s = s[i+1:]
    b = int(s)
    print len(str(a+b))