import sys
import math

while True:
    line = sys.stdin.readline()
    if not line:
        break
    token = list(map(int, line.strip().split()))
    print(int(math.log10(token[0] + token[1]) + 1)) import sys sys import math math while True:
    line = sys.stdin.readline()
    if not line:
        break
    token = list(map(int, line.strip().split()))
    print(int(math.log10(token[0] + token[1]) + 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(int(math.log10(token[0] + token[1]) + 1)) print int(math.log10(token[0] + token[1]) + 1) int math.log10(token[0] + token[1]) + 1 math.log10(token[0] + token[1]) math.log10 math log10 token[0] + token[1] token[0] token 0 token[1] token 1 1 line = sys.stdin.readline() sys.stdin.readline() line token = list(map(int, line.strip().split())) list(map(int, line.strip().split())) token
import sys
import math

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