import sys

def main():

    inputs = sys.stdin.readlines()
    for item in inputs:
        print(len(str(sum(tuple(map(int, item.split()))))))
    
main() import sys sys def main():

    inputs = sys.stdin.readlines()
    for item in inputs:
        print(len(str(sum(tuple(map(int, item.split()))))))
     main inputs = sys.stdin.readlines() inputs sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines for item in inputs:
        print(len(str(sum(tuple(map(int, item.split()))))))
     item inputs print(len(str(sum(tuple(map(int, item.split())))))) print len(str(sum(tuple(map(int, item.split()))))) len str(sum(tuple(map(int, item.split())))) str sum(tuple(map(int, item.split()))) sum tuple(map(int, item.split())) tuple map(int, item.split()) map int item.split() item.split item split main() main def main():

    inputs = sys.stdin.readlines()
    for item in inputs:
        print(len(str(sum(tuple(map(int, item.split()))))))
     def main():

    inputs = sys.stdin.readlines()
    for item in inputs:
        print(len(str(sum(tuple(map(int, item.split()))))))
     main
import sys

def main():

    inputs = sys.stdin.readlines()
    for item in inputs:
        print(len(str(sum(tuple(map(int, item.split()))))))
    
main()