import sys

def main():
    for line in sys.stdin:
        arr = map(int,line.split())
        print len(str(arr[0]+arr[1]))

if __name__ == '__main__':
    main() import sys sys def main():
    for line in sys.stdin:
        arr = map(int,line.split())
        print len(str(arr[0]+arr[1])) main for line in sys.stdin:
        arr = map(int,line.split())
        print len(str(arr[0]+arr[1])) line sys.stdin sys stdin arr = map(int,line.split()) arr map(int,line.split()) map int line.split() line.split line split print len(str(arr[0]+arr[1])) len str(arr[0]+arr[1]) str arr[0]+arr[1] arr[0] arr 0 arr[1] arr 1 if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    for line in sys.stdin:
        arr = map(int,line.split())
        print len(str(arr[0]+arr[1])) def main():
    for line in sys.stdin:
        arr = map(int,line.split())
        print len(str(arr[0]+arr[1])) main
import sys

def main():
    for line in sys.stdin:
        arr = map(int,line.split())
        print len(str(arr[0]+arr[1]))

if __name__ == '__main__':
    main()