import scala.io.Source.stdin

object Main {
	def main (args: Array[String]) = {
	var sum = io.StdIn.readLine()
		println(sum.split(" ").map(_.toInt).reduce(_+_).sum.toString.length)
		sum = io.StdIn.readLine()
	}
}