#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys

for line in sys.stdin:
	a,b = line.split(' ')
	value = int(a) + int(b)
	print( len('{}'.format(value)) ) import sys sys for line in sys.stdin:
	a,b = line.split(' ')
	value = int(a) + int(b)
	print( len('{}'.format(value)) ) line sys.stdin sys stdin a,b = line.split(' ') a line.split(' ') line.split line split ' ' b value = int(a) + int(b) value int(a) + int(b) int(a) int a int(b) int b print( len('{}'.format(value)) ) print len('{}'.format(value)) len '{}'.format(value) '{}'.format '{}' format value b = line.split(' ') line.split(' ') b a,b = line.split(' ') line.split(' ') a value = int(a) + int(b) int(a) + int(b) value
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys

for line in sys.stdin:
	a,b = line.split(' ')
	value = int(a) + int(b)
	print( len('{}'.format(value)) )