import string
import sys
import math

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
ip_list = {}
for i in range(len(ip)):
    ip_list[i] = ip[i].strip("\n").split()

for i in range(len(ip)):
    ans = int(ip_list[i][0]) + int(ip_list[i][1])
    print( int(math.log10(ans)+1) ) import string string import sys sys import math math ip = sys.stdin.readlines() ip sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines ip_list = {} ip_list {} for i in range(len(ip)):
    ip_list[i] = ip[i].strip("\n").split() i range(len(ip)) range len(ip) len ip ip_list[i] = ip[i].strip("\n").split() ip_list[i] ip_list i ip[i].strip("\n").split() [i].strip("\n").split [i].strip("\n") [i].strip [i] ip i strip "\n" split for i in range(len(ip)):
    ans = int(ip_list[i][0]) + int(ip_list[i][1])
    print( int(math.log10(ans)+1) ) i range(len(ip)) range len(ip) len ip ans = int(ip_list[i][0]) + int(ip_list[i][1]) ans int(ip_list[i][0]) + int(ip_list[i][1]) int(ip_list[i][0]) int ip_list[i][0] [i] ip_list i 0 int(ip_list[i][1]) int ip_list[i][1] [i] ip_list i 1 print( int(math.log10(ans)+1) ) print int(math.log10(ans)+1) int math.log10(ans)+1 math.log10(ans) math.log10 math log10 ans 1 ip_list = {} {} ip_list ans = int(ip_list[i][0]) + int(ip_list[i][1]) int(ip_list[i][0]) + int(ip_list[i][1]) ans ip = sys.stdin.readlines() sys.stdin.readlines() ip
import string
import sys
import math

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
ip_list = {}
for i in range(len(ip)):
    ip_list[i] = ip[i].strip("\n").split()

for i in range(len(ip)):
    ans = int(ip_list[i][0]) + int(ip_list[i][1])
    print( int(math.log10(ans)+1) )