# coding=utf-8
import math


while True:
    try:
        a, b = map(int, input().split())
    except EOFError:
        break
    c = a + b
    digit = int(math.log10(c) + 1)
    print(digit) import math math while True:
    try:
        a, b = map(int, input().split())
    except EOFError:
        break
    c = a + b
    digit = int(math.log10(c) + 1)
    print(digit) True try:
        a, b = map(int, input().split())
    except EOFError:
        break
     except EOFError:
        break
     break a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c = a + b c a + b a b digit = int(math.log10(c) + 1) digit int(math.log10(c) + 1) int math.log10(c) + 1 math.log10(c) math.log10 math log10 c 1 print(digit) print digit b = map(int, input().split()) map(int, input().split()) b c = a + b a + b c digit = int(math.log10(c) + 1) int(math.log10(c) + 1) digit a, b = map(int, input().split()) map(int, input().split()) a
# coding=utf-8
import math


while True:
    try:
        a, b = map(int, input().split())
    except EOFError:
        break
    c = a + b
    digit = int(math.log10(c) + 1)
    print(digit)