import sys

if __name__ == '__main__':
    # ??????????????\?????¨???????????????
    for line in sys.stdin:
        a, b = line.strip().split(' ')
        c = int(a) + int(b)
        print(len(str(c))) import sys sys if __name__ == '__main__':
    # ??????????????\?????¨???????????????
    for line in sys.stdin:
        a, b = line.strip().split(' ')
        c = int(a) + int(b)
        print(len(str(c))) __name__ == '__main__' __name__ '__main__' for line in sys.stdin:
        a, b = line.strip().split(' ')
        c = int(a) + int(b)
        print(len(str(c))) line sys.stdin sys stdin a, b = line.strip().split(' ') a line.strip().split(' ') line.strip().split line.strip() line.strip line strip split ' ' b c = int(a) + int(b) c int(a) + int(b) int(a) int a int(b) int b print(len(str(c))) print len(str(c)) len str(c) str c b = line.strip().split(' ') line.strip().split(' ') b c = int(a) + int(b) int(a) + int(b) c a, b = line.strip().split(' ') line.strip().split(' ') a
import sys

if __name__ == '__main__':
    # ??????????????\?????¨???????????????
    for line in sys.stdin:
        a, b = line.strip().split(' ')
        c = int(a) + int(b)
        print(len(str(c)))