#!/usr/bin/python
#-coding:utf8-

import sys

for s in sys.stdin:
  data = map(int,s.split())
  print len(str(data[0]+data[1])) import sys sys for s in sys.stdin:
  data = map(int,s.split())
  print len(str(data[0]+data[1])) s sys.stdin sys stdin data = map(int,s.split()) data map(int,s.split()) map int s.split() s.split s split print len(str(data[0]+data[1])) len str(data[0]+data[1]) str data[0]+data[1] data[0] data 0 data[1] data 1 data = map(int,s.split()) map(int,s.split()) data
#!/usr/bin/python
#-coding:utf8-

import sys

for s in sys.stdin:
  data = map(int,s.split())
  print len(str(data[0]+data[1]))