# -*- coding: utf-8 -*-

import sys

def get_digits(n):
    if n < 0:
        n *= -1
    return len(str(n))


def main():
    data = []
    for line in sys.stdin:
        a, b = map(int, line.split())
        digits = get_digits(a+b)
        print(digits)

if __name__ == '__main__':
    main() import sys sys def get_digits(n):
    if n < 0:
        n *= -1
    return len(str(n)) get_digits if n < 0:
        n *= -1
     n < 0 n 0 n *= -1 n -1 return len(str(n)) len(str(n)) len str(n) str n n n def main():
    data = []
    for line in sys.stdin:
        a, b = map(int, line.split())
        digits = get_digits(a+b)
        print(digits) main data = [] data [] for line in sys.stdin:
        a, b = map(int, line.split())
        digits = get_digits(a+b)
        print(digits) 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 digits = get_digits(a+b) digits get_digits(a+b) get_digits a+b a b print(digits) print digits if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def main():
    data = []
    for line in sys.stdin:
        a, b = map(int, line.split())
        digits = get_digits(a+b)
        print(digits) def main():
    data = []
    for line in sys.stdin:
        a, b = map(int, line.split())
        digits = get_digits(a+b)
        print(digits) main def get_digits(n):
    if n < 0:
        n *= -1
    return len(str(n)) def get_digits(n):
    if n < 0:
        n *= -1
    return len(str(n)) get_digits
# -*- coding: utf-8 -*-

import sys

def get_digits(n):
    if n < 0:
        n *= -1
    return len(str(n))


def main():
    data = []
    for line in sys.stdin:
        a, b = map(int, line.split())
        digits = get_digits(a+b)
        print(digits)

if __name__ == '__main__':
    main()