﻿"""
Digit Number
"""

def main():
    while True:
        try:
            sum_ = sum([int(x) for x in raw_input().split()])
            count = 0
            while sum_ > 0:
                sum_ /= 10
                count += 1
            print count
        except EOFError:
            break

if __name__ == '__main__':
    main()
