import sys
lines = sys.stdin.readlines()
for line in lines:
    line = line.split(" ")
    inp = []
    for i in line:
        inp.append(int(i))
    print (len(str(inp[0]+inp[1]))) import sys sys lines = sys.stdin.readlines() lines sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines for line in lines:
    line = line.split(" ")
    inp = []
    for i in line:
        inp.append(int(i))
    print (len(str(inp[0]+inp[1]))) line lines line = line.split(" ") line line.split(" ") line.split line split " " inp = [] inp [] for i in line:
        inp.append(int(i))
     i line inp.append(int(i)) inp.append inp append int(i) int i print (len(str(inp[0]+inp[1]))) print len(str(inp[0]+inp[1])) len str(inp[0]+inp[1]) str inp[0]+inp[1] inp[0] inp 0 inp[1] inp 1 line = line.split(" ") line.split(" ") line inp = [] [] inp lines = sys.stdin.readlines() sys.stdin.readlines() lines
import sys
lines = sys.stdin.readlines()
for line in lines:
    line = line.split(" ")
    inp = []
    for i in line:
        inp.append(int(i))
    print (len(str(inp[0]+inp[1])))