import sys

while True:
    line = sys.stdin.readline()
    if not line:
        break
    print(len(str(abs(sum(map(int, line.rstrip().split(' '))))))) import sys sys while True:
    line = sys.stdin.readline()
    if not line:
        break
    print(len(str(abs(sum(map(int, line.rstrip().split(' '))))))) True line = sys.stdin.readline() line sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline if not line:
        break
     not line line break print(len(str(abs(sum(map(int, line.rstrip().split(' '))))))) print len(str(abs(sum(map(int, line.rstrip().split(' ')))))) len str(abs(sum(map(int, line.rstrip().split(' '))))) str abs(sum(map(int, line.rstrip().split(' ')))) abs sum(map(int, line.rstrip().split(' '))) sum map(int, line.rstrip().split(' ')) map int line.rstrip().split(' ') line.rstrip().split line.rstrip() line.rstrip line rstrip split ' ' line = sys.stdin.readline() sys.stdin.readline() line
import sys

while True:
    line = sys.stdin.readline()
    if not line:
        break
    print(len(str(abs(sum(map(int, line.rstrip().split(' ')))))))