import sys

for s in sys.stdin:
  a,b = s.split(' ')
  c = int(a) + int(b)
  i = 1

  while c >= 10:
    c = c / 10
    i = i + 1

  print i import sys sys for s in sys.stdin:
  a,b = s.split(' ')
  c = int(a) + int(b)
  i = 1

  while c >= 10:
    c = c / 10
    i = i + 1

  print i s sys.stdin sys stdin a,b = s.split(' ') a s.split(' ') s.split s split ' ' b c = int(a) + int(b) c int(a) + int(b) int(a) int a int(b) int b i = 1 i 1 while c >= 10:
    c = c / 10
    i = i + 1

   c >= 10 c 10 c = c / 10 c c / 10 c 10 i = i + 1 i i + 1 i 1 print a,b = s.split(' ') s.split(' ') a i = i + 1 i + 1 i c = int(a) + int(b) int(a) + int(b) c i = 1 1 i c = c / 10 c / 10 c b = s.split(' ') s.split(' ') b
import sys

for s in sys.stdin:
  a,b = s.split(' ')
  c = int(a) + int(b)
  i = 1

  while c >= 10:
    c = c / 10
    i = i + 1

  print i