let () =
  let rec count n = if n < 10 then 1 else 1 + count (n/10) in
  try
    while true do
      let n = Scanf.scanf "%d %d\n" @@ fun a b -> a + b in
      Printf.printf "%d\n" (count n)
    done;
  with End_of_file -> ()
