# coding: utf-8
import sys
import math

for line in sys.stdin:
    l = map(int, line.split())
    print len(str(sum(l))) import sys sys import math math for line in sys.stdin:
    l = map(int, line.split())
    print len(str(sum(l))) line sys.stdin sys stdin l = map(int, line.split()) l map(int, line.split()) map int line.split() line.split line split print len(str(sum(l))) len str(sum(l)) str sum(l) sum l l = map(int, line.split()) map(int, line.split()) l
# coding: utf-8
import sys
import math

for line in sys.stdin:
    l = map(int, line.split())
    print len(str(sum(l)))