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

"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002
"""

while True:
    try:
        a = raw_input().split()
        #print a
        c = 0
        for b in a:
            c = c + int(b)
        print len(str(c))
    except EOFError:
        break """
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002
""" while True:
    try:
        a = raw_input().split()
        #print a
        c = 0
        for b in a:
            c = c + int(b)
        print len(str(c))
    except EOFError:
        break True try:
        a = raw_input().split()
        #print a
        c = 0
        for b in a:
            c = c + int(b)
        print len(str(c))
    except EOFError:
        break except EOFError:
        break break a = raw_input().split() a raw_input().split() ().split () raw_input split c = 0 c 0 for b in a:
            c = c + int(b)
         b a c = c + int(b) c c + int(b) c int(b) int b print len(str(c)) len str(c) str c a = raw_input().split() raw_input().split() a c = 0 0 c c = c + int(b) c + int(b) c
# -*- coding: utf-8 -*-

"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002
"""

while True:
    try:
        a = raw_input().split()
        #print a
        c = 0
        for b in a:
            c = c + int(b)
        print len(str(c))
    except EOFError:
        break