
# coding: utf-8
# Here your code !

import sys
import math

list = ["2","3"]
r = sys.stdin.readlines()

n = [[int(i) for i in (j.split())] for j in r]
#e = [[int(i) for i in input().split()] for i in range(n)] 

for j in n:
    a = sum(j)
    d = int(math.log10(a)) + 1
    print(d) import sys sys import math math list = ["2","3"] list ["2","3"] "2" "3" r = sys.stdin.readlines() r sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines [int(i) for i in (j.split())] for j in r for j in r j r for j in r [int(i) for i in (j.split())] n = [[int(i) for i in (j.split())] for j in r] n [[int(i) for i in (j.split())] for j in r] for j in n:
    a = sum(j)
    d = int(math.log10(a)) + 1
    print(d) j n a = sum(j) a sum(j) sum j d = int(math.log10(a)) + 1 d int(math.log10(a)) + 1 int(math.log10(a)) int math.log10(a) math.log10 math log10 a 1 print(d) print d r = sys.stdin.readlines() sys.stdin.readlines() r n = [[int(i) for i in (j.split())] for j in r] [[int(i) for i in (j.split())] for j in r] n d = int(math.log10(a)) + 1 int(math.log10(a)) + 1 d list = ["2","3"] ["2","3"] list a = sum(j) sum(j) a

# coding: utf-8
# Here your code !

import sys
import math

list = ["2","3"]
r = sys.stdin.readlines()

n = [[int(i) for i in (j.split())] for j in r]
#e = [[int(i) for i in input().split()] for i in range(n)] 

for j in n:
    a = sum(j)
    d = int(math.log10(a)) + 1
    print(d)