# coding: utf-8

import sys

def digit_check(n):
    i = 10
    digit = 1
    
    while int(n/i) != 0:
        i *= 10
        digit += 1

    return digit
        
def main():
    for line in sys.stdin:
        ls = list(map(int, line.split(' ')))
        print(digit_check(ls[0]+ls[1]))

if __name__ == '__main__':
    main() import sys sys def digit_check(n):
    i = 10
    digit = 1
    
    while int(n/i) != 0:
        i *= 10
        digit += 1

    return digit
         digit_check i = 10 i 10 digit = 1 digit 1 while int(n/i) != 0:
        i *= 10
        digit += 1

     int(n/i) != 0 int(n/i) int n/i n i 0 i *= 10 i 10 digit += 1 digit 1 return digit digit n n def main():
    for line in sys.stdin:
        ls = list(map(int, line.split(' ')))
        print(digit_check(ls[0]+ls[1])) main for line in sys.stdin:
        ls = list(map(int, line.split(' ')))
        print(digit_check(ls[0]+ls[1])) line sys.stdin sys stdin ls = list(map(int, line.split(' '))) ls list(map(int, line.split(' '))) list map(int, line.split(' ')) map int line.split(' ') line.split line split ' ' print(digit_check(ls[0]+ls[1])) print digit_check(ls[0]+ls[1]) digit_check ls[0]+ls[1] ls[0] ls 0 ls[1] ls 1 if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def digit_check(n):
    i = 10
    digit = 1
    
    while int(n/i) != 0:
        i *= 10
        digit += 1

    return digit
         def digit_check(n):
    i = 10
    digit = 1
    
    while int(n/i) != 0:
        i *= 10
        digit += 1

    return digit
         digit_check def main():
    for line in sys.stdin:
        ls = list(map(int, line.split(' ')))
        print(digit_check(ls[0]+ls[1])) def main():
    for line in sys.stdin:
        ls = list(map(int, line.split(' ')))
        print(digit_check(ls[0]+ls[1])) main
# coding: utf-8

import sys

def digit_check(n):
    i = 10
    digit = 1
    
    while int(n/i) != 0:
        i *= 10
        digit += 1

    return digit
        
def main():
    for line in sys.stdin:
        ls = list(map(int, line.split(' ')))
        print(digit_check(ls[0]+ls[1]))

if __name__ == '__main__':
    main()