# -*- config: utf-8 -*-
if __name__ == '__main__':
	while 1:
		try:
			nums = map(int,raw_input().split())
			s = sum(nums)
			print len(str(s))
		except:
			break if __name__ == '__main__':
	while 1:
		try:
			nums = map(int,raw_input().split())
			s = sum(nums)
			print len(str(s))
		except:
			break __name__ == '__main__' __name__ '__main__' while 1:
		try:
			nums = map(int,raw_input().split())
			s = sum(nums)
			print len(str(s))
		except:
			break 1 try:
			nums = map(int,raw_input().split())
			s = sum(nums)
			print len(str(s))
		except:
			break except:
			break break nums = map(int,raw_input().split()) nums map(int,raw_input().split()) map int raw_input().split() ().split () raw_input split s = sum(nums) s sum(nums) sum nums print len(str(s)) len str(s) str s s = sum(nums) sum(nums) s nums = map(int,raw_input().split()) map(int,raw_input().split()) nums
# -*- config: utf-8 -*-
if __name__ == '__main__':
	while 1:
		try:
			nums = map(int,raw_input().split())
			s = sum(nums)
			print len(str(s))
		except:
			break