# -*-coding:utf-8

import fileinput

if __name__ == '__main__':
    for line in fileinput.input():
        digit = 0
        tokens = list(map(int, line.strip().split()))
        a, b = tokens[0], tokens[1]
        num = a + b

        print(len(str(num))) import fileinput fileinput if __name__ == '__main__':
    for line in fileinput.input():
        digit = 0
        tokens = list(map(int, line.strip().split()))
        a, b = tokens[0], tokens[1]
        num = a + b

        print(len(str(num))) __name__ == '__main__' __name__ '__main__' for line in fileinput.input():
        digit = 0
        tokens = list(map(int, line.strip().split()))
        a, b = tokens[0], tokens[1]
        num = a + b

        print(len(str(num))) line fileinput.input() fileinput.input fileinput input digit = 0 digit 0 tokens = list(map(int, line.strip().split())) tokens list(map(int, line.strip().split())) list map(int, line.strip().split()) map int line.strip().split() line.strip().split line.strip() line.strip line strip split a, b = tokens[0], tokens[1] a tokens[0] tokens 0 b tokens[1] tokens 1 num = a + b num a + b a b print(len(str(num))) print len(str(num)) len str(num) str num digit = 0 0 digit b = tokens[0], tokens[1] tokens[1] b tokens = list(map(int, line.strip().split())) list(map(int, line.strip().split())) tokens num = a + b a + b num a, b = tokens[0], tokens[1] tokens[0] a
# -*-coding:utf-8

import fileinput

if __name__ == '__main__':
    for line in fileinput.input():
        digit = 0
        tokens = list(map(int, line.strip().split()))
        a, b = tokens[0], tokens[1]
        num = a + b

        print(len(str(num)))