import math

while True:
    try:
        line = input().split(" ")
        print(int(math.log10(int(line[0])+int(line[1])))+1)
    except:
        break import math math while True:
    try:
        line = input().split(" ")
        print(int(math.log10(int(line[0])+int(line[1])))+1)
    except:
        break True try:
        line = input().split(" ")
        print(int(math.log10(int(line[0])+int(line[1])))+1)
    except:
        break except:
        break break line = input().split(" ") line input().split(" ") ().split () input split " " print(int(math.log10(int(line[0])+int(line[1])))+1) print int(math.log10(int(line[0])+int(line[1])))+1 int(math.log10(int(line[0])+int(line[1]))) int math.log10(int(line[0])+int(line[1])) math.log10 math log10 int(line[0])+int(line[1]) int(line[0]) int line[0] line 0 int(line[1]) int line[1] line 1 1 line = input().split(" ") input().split(" ") line
import math

while True:
    try:
        line = input().split(" ")
        print(int(math.log10(int(line[0])+int(line[1])))+1)
    except:
        break