# 何行あるかわからない入力をまとめて処理する
import sys
line = sys.stdin.readlines()
#print(line)
for i in line:
    # map関数は配列の型を一括変換するのに便利
    b = list(map(int, i.split(" ")))
    c = 1
    d = b[0] + b[1]
    while(d >= 10):
        c += 1
        d = d / 10
    print(c)
 import sys sys line = sys.stdin.readlines() line sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines for i in line:
    # map関数は配列の型を一括変換するのに便利
    b = list(map(int, i.split(" ")))
    c = 1
    d = b[0] + b[1]
    while(d >= 10):
        c += 1
        d = d / 10
    print(c) i line b = list(map(int, i.split(" "))) b list(map(int, i.split(" "))) list map(int, i.split(" ")) map int i.split(" ") i.split i split " " c = 1 c 1 d = b[0] + b[1] d b[0] + b[1] b[0] b 0 b[1] b 1 while(d >= 10):
        c += 1
        d = d / 10
     d >= 10 d 10 c += 1 c 1 d = d / 10 d d / 10 d 10 print(c) print c d = d / 10 d / 10 d d = b[0] + b[1] b[0] + b[1] d b = list(map(int, i.split(" "))) list(map(int, i.split(" "))) b c += 1 1 c line = sys.stdin.readlines() sys.stdin.readlines() line c = 1 1 c
# 何行あるかわからない入力をまとめて処理する
import sys
line = sys.stdin.readlines()
#print(line)
for i in line:
    # map関数は配列の型を一括変換するのに便利
    b = list(map(int, i.split(" ")))
    c = 1
    d = b[0] + b[1]
    while(d >= 10):
        c += 1
        d = d / 10
    print(c)

