import sys

def main():
    """ ????????? """
    istr = sys.stdin.read()
    wi = istr.splitlines()
    for i in wi:
        a = list(map(int,i.split()))
        b = str(a[0] + a[1])
        print(len(b))

if __name__ == '__main__':
    main() import sys sys def main():
    """ ????????? """
    istr = sys.stdin.read()
    wi = istr.splitlines()
    for i in wi:
        a = list(map(int,i.split()))
        b = str(a[0] + a[1])
        print(len(b)) main """ ????????? """ istr = sys.stdin.read() istr sys.stdin.read() sys.stdin.read sys.stdin sys stdin read wi = istr.splitlines() wi istr.splitlines() istr.splitlines istr splitlines for i in wi:
        a = list(map(int,i.split()))
        b = str(a[0] + a[1])
        print(len(b)) i wi a = list(map(int,i.split())) a list(map(int,i.split())) list map(int,i.split()) map int i.split() i.split i split b = str(a[0] + a[1]) b str(a[0] + a[1]) str a[0] + a[1] a[0] a 0 a[1] a 1 print(len(b)) print len(b) len b if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    """ ????????? """
    istr = sys.stdin.read()
    wi = istr.splitlines()
    for i in wi:
        a = list(map(int,i.split()))
        b = str(a[0] + a[1])
        print(len(b)) def main():
    """ ????????? """
    istr = sys.stdin.read()
    wi = istr.splitlines()
    for i in wi:
        a = list(map(int,i.split()))
        b = str(a[0] + a[1])
        print(len(b)) main
import sys

def main():
    """ ????????? """
    istr = sys.stdin.read()
    wi = istr.splitlines()
    for i in wi:
        a = list(map(int,i.split()))
        b = str(a[0] + a[1])
        print(len(b))

if __name__ == '__main__':
    main()