#!/usr/bin/python
import sys

for l in sys.stdin:
    array = l.split()
    print len(str(int(array[0]) + int(array[1]))) import sys sys for l in sys.stdin:
    array = l.split()
    print len(str(int(array[0]) + int(array[1]))) l sys.stdin sys stdin array = l.split() array l.split() l.split l split print len(str(int(array[0]) + int(array[1]))) len str(int(array[0]) + int(array[1])) str int(array[0]) + int(array[1]) int(array[0]) int array[0] array 0 int(array[1]) int array[1] array 1 array = l.split() l.split() array
#!/usr/bin/python
import sys

for l in sys.stdin:
    array = l.split()
    print len(str(int(array[0]) + int(array[1])))