import sys
for i in sys.stdin.readlines():
    x = i.split(" ")
    print len(str(int(x[0]) + int(x[1]))) import sys sys for i in sys.stdin.readlines():
    x = i.split(" ")
    print len(str(int(x[0]) + int(x[1]))) i sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines x = i.split(" ") x i.split(" ") i.split i split " " print len(str(int(x[0]) + int(x[1]))) len str(int(x[0]) + int(x[1])) str int(x[0]) + int(x[1]) int(x[0]) int x[0] x 0 int(x[1]) int x[1] x 1 x = i.split(" ") i.split(" ") x
import sys
for i in sys.stdin.readlines():
    x = i.split(" ")
    print len(str(int(x[0]) + int(x[1])))