from sys import stdin
for l in stdin:
  a,b=map(int,l.split())
  print(len(str(a+b))) from sys import stdin for l in stdin:
  a,b=map(int,l.split())
  print(len(str(a+b))) l stdin a,b=map(int,l.split()) a map(int,l.split()) map int l.split() l.split l split b print(len(str(a+b))) print len(str(a+b)) len str(a+b) str a+b a b b=map(int,l.split()) map(int,l.split()) b a,b=map(int,l.split()) map(int,l.split()) a
from sys import stdin
for l in stdin:
  a,b=map(int,l.split())
  print(len(str(a+b)))