#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
	while True:		
		try:
			num = eval(input().replace(" ","+"))
		except:
			return
		else:
			print(len(str(num)))
if __name__ == '__main__':
  main() def main():
	while True:		
		try:
			num = eval(input().replace(" ","+"))
		except:
			return
		else:
			print(len(str(num))) main while True:		
		try:
			num = eval(input().replace(" ","+"))
		except:
			return
		else:
			print(len(str(num))) True try:
			num = eval(input().replace(" ","+"))
		except:
			return
		else:
			print(len(str(num))) except:
			return
		 return num = eval(input().replace(" ","+")) num eval(input().replace(" ","+")) eval input().replace(" ","+") ().replace () input replace " " "+" print(len(str(num))) print len(str(num)) len str(num) str num if __name__ == '__main__':
  main() __name__ == '__main__' __name__ '__main__' main() main def main():
	while True:		
		try:
			num = eval(input().replace(" ","+"))
		except:
			return
		else:
			print(len(str(num))) def main():
	while True:		
		try:
			num = eval(input().replace(" ","+"))
		except:
			return
		else:
			print(len(str(num))) main
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
	while True:		
		try:
			num = eval(input().replace(" ","+"))
		except:
			return
		else:
			print(len(str(num)))
if __name__ == '__main__':
  main()