**Digit Number**

Write a program to calculate the number of digits in the sum of two non-negative integers, a and b.

**Input**

The input consists of several test cases, each containing two non-negative integers a and b separated by a space on a single line. The input terminates with EOF.

**Constraints**

- 0 ≤ a, b ≤ 1,000,000
- The number of datasets ≤ 200

**Output**

For each dataset, print the number of digits in the sum of a and b.

**Sample Input**

5 7
1 99
1000 999

**Output for the Sample Input**

2
3
4

# Buggy version:
while 1:
    sum = input()
    sum_list = sum.split(" ")
    print(len(str(int(sum_list[0]) + int(sum_list[1]))))
    except EOFError:
        break


# Fixed version:
while 1:
    try:
        sum = input()
        sum_list = sum.split()
        print(len(str(int(sum_list[0]) + int(sum_list[1]))))
    except EOFError:
        break

# Buggy version:
while True:
    try:
        s=input().split(" ")
        num=int(s[0])+int(s[1])
        print(len(str(num)))
    escept:
        break
   

# Fixed version:
while True:
    try:
        s=input().split(" ")
        num=int(s[0])+int(s[1])
        print(len(str(num)))
    except:
        break

# Buggy version:
try:
    s = []
    while True:
        t = raw_input()
        s.append(t)
except EOFError:
    for i in range(len(s)):
        a = int(s[i].split(' ')[0])
        b = int(s[i].split(' ')[1])
        print(len(str(a + b)))

# Fixed version:
try:
    s = []
    while True:
        t = input()
        s.append(t)
except EOFError:
    for i in range(len(s)):
        a = int(s[i].split(' ')[0])
        b = int(s[i].split(' ')[1])
        print(len(str(a + b)))

# Buggy version:
# -*-coding:utf-8-*-

def get_input():
    
    while True:
        try:
            yield "".join(input())
        except EOFError:
            break
                     
if __name__=="__main__":
    array = list(get_input())
    for i in range(len(array)):
        
        temp = array[i].split()
        
        a = int(temp[0])
        b = int(temp[1])

 
                
        ans = a + b
        
        print(ans)

# Fixed version:
# -*-coding:utf-8-*-

def get_input():
    
    while True:
        try:
            yield "".join(input())
        except EOFError:
            break
                     
if __name__=="__main__":
    array = list(get_input())
    for i in range(len(array)):
        
        temp = array[i].split()
        
        a = int(temp[0])
        b = int(temp[1])
                        
        ans = a + b
        
        print(len(str(ans)))

# Buggy version:
import sys
L = sys.stdin.readlines()
for line in L:
	N = line.split()
	sums = int(N[0]) + int(N[1])
	print(len(str(sums))+1)

# Fixed version:
import sys
L = sys.stdin.readlines()
for line in L:
	N = line[:-1].split()
	sums = int(N[0]) + int(N[1])
	print(len(str(sums)))

# Buggy version:
import sys
L = sys.stdin.readlines()
for line in L:  ##line?????????????????????
	N = line.split()  ##N??????????????¨????????????
	sums = int(N[0]) + int(N[1])
	print(len(str(sums))+1)

# Fixed version:
import sys
L = sys.stdin.readlines()
for line in L:  ##line?????????????????????
	N = line.split()  ##N??????????????¨????????????
	sums = int(N[0]) + int(N[1])
	print(len(str(sums)))

# Buggy version:
import sys

for line in sys.stdin:
    a, b = line.split()
    print(len(str(a + b)))

# Fixed version:
import sys
for line in sys.stdin:
    a,b = line.split(" ")
    print(len(str(int(a)+int(b))))

# Buggy version:
if __name__ == '__main__':

    nums = []

    for line in sys.stdin:
        if line == "\n":
            break
        else :
            nums.append([int(item) for item in line.split(" ")])

    for n in nums:
        sum = n[0] + n[1]
        print(len(str(sum)))
    

# Fixed version:
import sys

if __name__ == '__main__':

    nums = []

    for line in sys.stdin:
        if line == "\n":
            break
        else :
            nums.append([int(item) for item in line.split(" ")])

    for n in nums:
        sum = n[0] + n[1]
        print(len(str(sum)))

# Buggy version:
def main():
    def inputs():
        li = []
        count = 0
        try:
            while count < 200:
                li.append(input())
                count += 1
        except EOFError:
            return li
        return li

    li = inputs()
    for x in li:
        a = x.split(" ")
        print(int(a[0]) + int(a[1]))
    return None

if __name__ == '__main__':
    main()

# Fixed version:
def main():
    def inputs():
        li = []
        count = 0
        try:
            while count < 200:
                li.append(input())
                count += 1
        except EOFError:
            return li
        return li

    li = inputs()
    for x in li:
        a = x.split(" ")
        result = len(str(int(a[0]) + int(a[1])))
        print(result)
    return None

if __name__ == '__main__':
    main()

# Buggy version:
import fileinput

if __name__ == "__main__":
    for line in fileinput.input():
        v = line.split(" ")
        print(sum([int(i) for i in v]))

# Fixed version:
import fileinput

if __name__ == "__main__":
    for line in fileinput.input():
        v = line.split(" ")
        print(len(str(sum([int(i) for i in v]))))

# Buggy version:
# coding: utf-8
# Here your code !

while 1:
    try:
        a,b = map(int,input().split())
        print(a+b)
    except:
        break

# Fixed version:
# coding: utf-8
# Here your code !

while 1:
    try:
        a,b = map(int,input().split())
        su = a+b
        print(len(str(su)))
    except:
        break

# Buggy version:
while 1:
    try:
        a,b = int(input().split())
        c = a + b
        print(len(str(c)))
    except EOFError:
        break


# Fixed version:
while (1):
	try:
		a, b = map(int, input().split())
	except:
		break
	c = a+b
	print( len(str(c)) )

# Buggy version:
import sys
a = [print(len(sum(map(int, line.split())))) for line in sys.stdin]

# Fixed version:
import sys
a = [print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]

# Buggy version:
while True:
    try:
        x = list(map(int, input().split(' ')))
        n = x[0] * x[1]
        print(len(str(n)))
    except EOFError:
        break

# Fixed version:
while True:
    try:
        x = list(map(int, input().split(' ')))
        n = x[0] + x[1]
        print(len(str(n)))
    except EOFError:
        break

# Buggy version:
while True:
    try:
        a,b=(int(i) for i in input().split())
        print(len(str(a+b)))
    except EOFError:

# Fixed version:
while True:
    try:
        a,b=(int(i) for i in input().split())
        print(len(str(a+b)))
    except EOFError:
        break

# Buggy version:
import sys

for line in sys.stdin:
  x, y = map(int, line.split())
  print(x+y)

# Fixed version:
import sys

for line in sys.stdin:
  x, y = map(int, line.split())
  print(len(str(x+y)))

# Buggy version:
answers=[]
while True:
    try:
        nums=input().split()
        answers.append(len(nums[0]+nums[1]))
    except :
        break
for i in range(len(answers)):
    print(answers[i])

# Fixed version:
answers=[]
while True:
    try:
        nums=input().split()
        answers.append(len(str(int(nums[0])+int(nums[1]))))
    except :
        break
for i in range(len(answers)):
    print(answers[i])

# Buggy version:
import os
for line in sys.stdin:
        s=sum([int(num) for num in line.split(' ')])
        print(len(str(s)))

# Fixed version:
import sys
for line in sys.stdin:
        s=sum([int(num) for num in line.split(' ')])
        print(len(str(s)))

# Buggy version:
import sys
for e in sys.stdin.readlines():
 print(len(sum(map(int,e.split()))))


# Fixed version:
import sys
for e in sys.stdin.readlines():
 print(len(str(sum(map(int,e.split())))))

# Buggy version:
import sys
for e in sys.stdin.readlines():
 print(len(str(sum(map(int,e.split()))))


# Fixed version:
import sys
for e in sys.stdin:print(len(str(sum(map(int,e.split())))))

# Buggy version:
def main():
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break


# Fixed version:
def main():
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break
main()

# Buggy version:
while True:
    try:
        a, b = (int(x) for x in input().split())
        print(a + b)
    except:
        break;


# Fixed version:
while True:
    try:
        a, b = (int(x) for x in input().split())
        print(len(str(a + b)))
    except:
        break;

# Buggy version:
import sys

for s in sys.stdin:
  a,b = map(int,s.split())
  print len(str(a+b))

# Fixed version:
import sys
for e in sys.stdin:
    a, b = map(int, e.split())
    print(len(str(a+b)))

# Buggy version:
while True:
	try:
		a,b = map(int,input().split(" "))
		print(a+b)
	except: break 

# Fixed version:
while True:
  try:
    a,b = map(int,input().split(" "))
  except:break
  print(len(str(a+b)))

# Buggy version:
import sys.stdin.readlines
for line in sys.stdin.readlines():
  a,b = map(int,line.split())
  print(len(str(a+b)))
  

# Fixed version:
import sys
for line in sys.stdin.readlines():
    a, b = list(map(int, line.split()))
    print(len(str(a+b)))

# Buggy version:
while True:
  try:
    a,b = map(int,input().split())
    print (len(str(a+b)))
  except EOFError:
    break:

# Fixed version:
while True:
  try:
    a, b = map(int, input().split())
    c = a + b
    cc = str(c)
    print(len(cc))
    
  except EOFError:
    break

# Buggy version:
while True:
    try:
        line = input()
    except:
        break
    a, b = map(int, input().strip().split())
    print(len(str(a + b)))

# Fixed version:
while True:
	try:
		a,b=map(int,input().split())
		print(len(str(a+b)))
	except:
		break

# Buggy version:
import sys

for line in sys.stdin:
    a, b = map(str, line.split())
    print(len(a+b))

# Fixed version:
import sys
for line in sys.stdin:
    a,b = line.split()
    a,b = int(a),int(b)
    print(len(str(a+b)))

# Buggy version:
while True:
	try:
		a,b = map(int, input().split())
	except:
		break

print(len(str(a+b)))

# Fixed version:
while True:
    try: a,b = map(int,input().split())
    except EOFError: break
    print(len(str(a+b)))