import sys

while True:
    line = sys.stdin.readline()
    if not line:
        break
    token = list(map(int, line.strip().split()))
    print(len(str(token[0] + token[1]))) import sys sys while True:
    line = sys.stdin.readline()
    if not line:
        break
    token = list(map(int, line.strip().split()))
    print(len(str(token[0] + token[1]))) True line = sys.stdin.readline() line sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline if not line:
        break
     not line line break token = list(map(int, line.strip().split())) token list(map(int, line.strip().split())) list map(int, line.strip().split()) map int line.strip().split() line.strip().split line.strip() line.strip line strip split print(len(str(token[0] + token[1]))) print len(str(token[0] + token[1])) len str(token[0] + token[1]) str token[0] + token[1] token[0] token 0 token[1] token 1 token = list(map(int, line.strip().split())) list(map(int, line.strip().split())) token line = sys.stdin.readline() sys.stdin.readline() line
import sys

while True:
    line = sys.stdin.readline()
    if not line:
        break
    token = list(map(int, line.strip().split()))
    print(len(str(token[0] + token[1])))