import sys


def solve():
    a = []
    for line in sys.stdin:
        digit_list = line.split(' ')
        new_list = []
        for s in digit_list:
            new_list.append(int(s))
        a.append((new_list))
    for j in a:

        print str(len(str(sum(j))))	

if __name__ == '__main__':
    solve() import sys sys def solve():
    a = []
    for line in sys.stdin:
        digit_list = line.split(' ')
        new_list = []
        for s in digit_list:
            new_list.append(int(s))
        a.append((new_list))
    for j in a:

        print str(len(str(sum(j))))	 solve a = [] a [] for line in sys.stdin:
        digit_list = line.split(' ')
        new_list = []
        for s in digit_list:
            new_list.append(int(s))
        a.append((new_list))
     line sys.stdin sys stdin digit_list = line.split(' ') digit_list line.split(' ') line.split line split ' ' new_list = [] new_list [] for s in digit_list:
            new_list.append(int(s))
         s digit_list new_list.append(int(s)) new_list.append new_list append int(s) int s a.append((new_list)) a.append a append new_list for j in a:

        print str(len(str(sum(j))))	 j a print str(len(str(sum(j)))) str len(str(sum(j))) len str(sum(j)) str sum(j) sum j if __name__ == '__main__':
    solve() __name__ == '__main__' __name__ '__main__' solve() solve def solve():
    a = []
    for line in sys.stdin:
        digit_list = line.split(' ')
        new_list = []
        for s in digit_list:
            new_list.append(int(s))
        a.append((new_list))
    for j in a:

        print str(len(str(sum(j))))	 def solve():
    a = []
    for line in sys.stdin:
        digit_list = line.split(' ')
        new_list = []
        for s in digit_list:
            new_list.append(int(s))
        a.append((new_list))
    for j in a:

        print str(len(str(sum(j))))	 solve
import sys


def solve():
    a = []
    for line in sys.stdin:
        digit_list = line.split(' ')
        new_list = []
        for s in digit_list:
            new_list.append(int(s))
        a.append((new_list))
    for j in a:

        print str(len(str(sum(j))))	

if __name__ == '__main__':
    solve()