#@ /usr/bin/env python3.4
import sys
list = sys.stdin.readlines()
for i in list:
    num = i[:-1].split(' ', 2)
    print(len(str(int(num[0])+int(num[1])))) import sys sys list = sys.stdin.readlines() list sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines for i in list:
    num = i[:-1].split(' ', 2)
    print(len(str(int(num[0])+int(num[1])))) i list num = i[:-1].split(' ', 2) num i[:-1].split(' ', 2) [:-1].split [:-1] i :-1 -1 split ' ' 2 print(len(str(int(num[0])+int(num[1])))) print len(str(int(num[0])+int(num[1]))) len str(int(num[0])+int(num[1])) str int(num[0])+int(num[1]) int(num[0]) int num[0] num 0 int(num[1]) int num[1] num 1 num = i[:-1].split(' ', 2) i[:-1].split(' ', 2) num list = sys.stdin.readlines() sys.stdin.readlines() list
#@ /usr/bin/env python3.4
import sys
list = sys.stdin.readlines()
for i in list:
    num = i[:-1].split(' ', 2)
    print(len(str(int(num[0])+int(num[1]))))