while (tmp = gets) != nil
  (a,b) = tmp.chomp.split.map(&:to_i)
  break if  a == nil || b == nil
  c = a.to_i + b.to_i
  count = 1

  while(c / 10) >= 1
    c /= 10
    count += 1
  end

  puts count
end

