import sys

def log10(num):
    log = 0
    while num > 0:
        log += 1
        num //= 10
    return log

for line in sys.stdin:
    a, b = map(int, line.split())
    print(log10(a + b) if a + b else 1) import sys sys def log10(num):
    log = 0
    while num > 0:
        log += 1
        num //= 10
    return log log10 log = 0 log 0 while num > 0:
        log += 1
        num //= 10
     num > 0 num 0 log += 1 log 1 num //= 10 num 10 return log log num num for line in sys.stdin:
    a, b = map(int, line.split())
    print(log10(a + b) if a + b else 1) line sys.stdin sys stdin a, b = map(int, line.split()) a map(int, line.split()) map int line.split() line.split line split b print(log10(a + b) if a + b else 1) print log10(a + b) if a + b else 1 a + b a b log10(a + b) log10 a + b a b 1 a, b = map(int, line.split()) map(int, line.split()) a def log10(num):
    log = 0
    while num > 0:
        log += 1
        num //= 10
    return log def log10(num):
    log = 0
    while num > 0:
        log += 1
        num //= 10
    return log log10 b = map(int, line.split()) map(int, line.split()) b
import sys

def log10(num):
    log = 0
    while num > 0:
        log += 1
        num //= 10
    return log

for line in sys.stdin:
    a, b = map(int, line.split())
    print(log10(a + b) if a + b else 1)