import sys
import math

for x in sys.stdin.readlines():
	a, b = map(int, x.strip().split())
	print int(math.log10(a + b)) + 1 import sys sys import math math for x in sys.stdin.readlines():
	a, b = map(int, x.strip().split())
	print int(math.log10(a + b)) + 1 x sys.stdin.readlines() sys.stdin.readlines sys.stdin sys stdin readlines a, b = map(int, x.strip().split()) a map(int, x.strip().split()) map int x.strip().split() x.strip().split x.strip() x.strip x strip split b print int(math.log10(a + b)) + 1 int(math.log10(a + b)) int math.log10(a + b) math.log10 math log10 a + b a b 1 b = map(int, x.strip().split()) map(int, x.strip().split()) b a, b = map(int, x.strip().split()) map(int, x.strip().split()) a
import sys
import math

for x in sys.stdin.readlines():
	a, b = map(int, x.strip().split())
	print int(math.log10(a + b)) + 1