Problem:
Digit Number Write a program which computes the digit number of sum of two integers a and b . Input There are several test cases. Each test case consists of two non-negative integers a and b which are separeted by a space in a line. The input terminates with EOF. Constraints  0 ≤ a , b ≤ 1,000,000  The number of datasets ≤ 200  Output Print the number of digits of a + b for each data set. Sample Input 5 7
1 99
1000 999 Output for the Sample Input 2
3
4

Solution (Python):
import sys
 
su = 0
for line in sys.stdin:
    for x in line.split():
        su += int(x)
    su = str(su)
    size = len(su)
    print(size)
    su = 0

Solution (Python):

import sys
import math

array =[]
for line in sys.stdin:
    array.append(line)
    
for i in range(len(array)):
    num = array[i].split(' ')
    a = int(num[0])
    b = int(num[1])
    n = a + b
    print(int(math.log10(n) + 1))

Solution (Python):
import sys

def main():
    for line in sys.stdin:
        arr = map(int,line.split())
        print len(str(arr[0]+arr[1]))

if __name__ == '__main__':
    main()

Solution (Python):

while 1:
    try:
        a, b = map(int, input().split())
        c = str(a + b)

        print(len(c))
    except:
        break

Solution (Python):


"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002
"""

while True:
    try:
        a = raw_input().split()
        
        c = 0
        for b in a:
            c = c + int(b)
        print len(str(c))
    except EOFError:
        break

Solution (Python):
while True:
    try:
        a, b = raw_input().split()
        
        print len(str(int(a)+int(b)))
    except EOFError:
        break

Solution (Python):
import sys

for line in iter(sys.stdin.readline, ""):
  sp = line.rstrip().split(" ")
  sum = int(sp[0])+int(sp[1])
  print len(str(sum))

Solution (Python):
import sys

a = []
answer_array = []
for line in sys.stdin:
    a.append(map(int, line.strip().split()))
    
        

for i in range(len(a)):
    sum_up = a[i][0] + a[i][1]

    answer = len(str(sum_up))

    answer_array.append(answer)

for j in range(len(answer_array)):
    print answer_array[j]

Solution (Python):
while True:
    try:
        line = input()
    except EOFError:
        break
    s = sum(map(int, line.split()))
    num = 0
    for c in str(s):
        if c.isdigit():
            num += 1
    print(num)

Solution (Python):
from sys import stdin
for l in stdin:
  a,b=map(int,l.split())
  print(len(str(a+b)))

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

Solution (Python):
while True:
    try:
        print(len(str(sum(list(map(int, input().split()))))))
    except:
        break

Solution (Python):
import sys

nums = []

for line in sys.stdin:
    nums.append(line.rstrip())


for i in range(len(nums)):
    int_a = int(nums[i].split(" ")[0])
    int_b = int(nums[i].split(" ")[1])
    
    print(len(str(int_a+int_b)))

Solution (Python):
import sys

a = []
for line in sys.stdin:
    a.append(line)

for n in a:
    inl=n.split()
    num=int(inl[0])+int(inl[1])
    l=list(str(num))
    time=0
    for i in l:
        time+=1
    print time

Solution (Python):
import sys

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

Solution (Python):
import sys

while True:
    line = sys.stdin.readline()
    if not line:
        break
    token = list(map(int, line.strip().split()))
    print(len(str(token[0] + token[1])))

Solution (Python):
import sys
import math

while True:
    line = sys.stdin.readline()
    if not line:
        break
    token = list(map(int, line.strip().split()))
    print(int(math.log10(token[0] + token[1]) + 1))

Solution (Python):
import sys
from math import log10

for line in sys.stdin:
        a, b = map(int, line.split())
        print(int(log10(a+b)+1))

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

Solution (Python):
import sys
array = []
for inp in sys.stdin.readlines():
    array.append(inp.split())
for i in range(len(array)):
    a =int(array[i][0]) + int(array[i][1])
    print(len(str(a)))

Solution (Python):
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)))

Solution (Python):
import sys

data = []
for i in sys.stdin:
    data.append(list(map(int, i.split())))

for j in range(len(data)):
    print(len(str(data[j][0] + data[j][1])))

Solution (Python):
data_set = []
while True:
    try:
        k = list(map(int, input().split()))
        data_set.append(k[0] + k[1])
    except:
        for i in data_set:
            print(len(str(i)))
        break

Solution (Python):
while 1:
  try:
    a,b=map(int,raw_input().split())
    print len("%d"%(a+b))
  except:break

Solution (Python):
while True:
    try:
        a,b=map(int,input().split())
    except:
        break
    sum=str(a+b)
    print(len(sum))

Solution (Python):



import sys

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

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

Solution (Python):
import sys

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

Solution (Python):


import sys
import os

for s in sys.stdin:
    a, b = list(map(int, s.split()))
    c = a + b

    if c == 1:
        print(1)
        continue

    for i in range(7):
        left = 10 ** i
        right = 10 ** (i + 1)
        if left <= c < right:
            print(i + 1)
            break

Solution (Python):
while True:
	try:
		a,b = map(int, raw_input().split())
		print len(str(a+b))
	except EOFError:
		break

Solution (Python):
def solve():
	a,b = map(int,input().split())
	print(len(str(a+b)))

while True:
	try:
		solve()
	except:
		break

Solution (Python):
import sys
from operator import add
from math import log10

for i in sys.stdin:
    print(int(log10(add(*list(map(int, i.split()))))) + 1)

Solution (Python):
import sys
from operator import add

for i in sys.stdin:
    print(len(str(add(*list(map(int, i.split()))))))

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

Solution (Python):
while True:
    try:
        a,b=[int(i) for i in input().split(" ")]
        print(len(str(a+b)))
    except EOFError:
        break

Solution (Python):
while True:
    try:
        a,b = map(int,raw_input().split())
        c=str(a+b)
        print len(c)
    except EOFError:
        break

Solution (Python):
while True :
    try :
        a = [int(_) for _ in input().split()]
        print(len(str(sum(a))))
    except :
        break

Solution (Python):


import sys

def digit_check(n):
    i = 10
    digit = 1
    
    while int(n/i) != 0:
        i *= 10
        digit += 1

    return digit
        
def main():
    for line in sys.stdin:
        ls = list(map(int, line.split(' ')))
        print(digit_check(ls[0]+ls[1]))

if __name__ == '__main__':
    main()

Solution (Python):


import sys

def digit_check(n):
    digit = 1
    
    while int(n/(10**digit)) != 0:
        digit += 1

    return digit
        
def main():
    for line in sys.stdin:
        ls = list(map(int, line.split(' ')))
        print(digit_check(ls[0]+ls[1]))

if __name__ == '__main__':
    main()

Solution (Python):
import sys

lines = []
for line in sys.stdin:
    num = line.split(" ")
    print(len(str(int(num[0]) + int(num[1]))))

Solution (Python):
import sys

def solve():
    while True:
        try:
            a, b = map(int, sys.stdin.readline().split())
            c = a + b

            if c == 0:
                print(1)
            else:
                ans = 0

                while c > 0:
                    ans += 1
                    c //= 10

                print(ans)

        except:
            return

if __name__ == '__main__':
    solve()

Solution (Python):
import sys

def solve():
    for line in sys.stdin:
        a, b = map(int, line.split())

        c = a + b

        if c == 0:
            print(1)
        else:
            ans = 0

            while c > 0:
                ans += 1
                c //= 10

            print(ans)

if __name__ == '__main__':
    solve()

Solution (Python):
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()

Solution (Python):
while True:
    try:
        a,b = map(int,input().split())
    except:
        exit()
 
    print(len(str(a+b)))

Solution (Python):
import sys

while True:
    line = sys.stdin.readline()
    if not line:
        break
    print(len(str(abs(sum(map(int, line.rstrip().split(' ')))))))

Solution (Python):
import fileinput

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

Solution (Python):
def digit(n):
	cnt = 1
	m = n

	while 10 <= m:
		cnt += 1
		m = m / 10
		
	return cnt

while True:
	try:
		inpt = map(int, raw_input().split())
		print digit(inpt[0]+inpt[1])

	except:
		break

Solution (Python):
import fileinput

if __name__ == '__main__':
    for line in fileinput.input():
        tokens = line.strip().split()
        a, b = int(tokens[0]), int(tokens[1])
        c = a+b
        print(len(str(c)))

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

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

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

Solution (Python):
for var in range(1,2001):
    try:
        a,b=map(int,input().split())
        c=a+b
        c=str(c)
        print(len(c))
    except:
        break

Solution (Python):



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

Solution (Python):
import sys
from math import log10

for line in sys.stdin:
	a, b = map(int, line.split())
	digitNumber = int(log10((a + b))) + 1
	print(digitNumber)

Solution (Python):
import sys

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

Solution (Python):
import sys
a=[map(int,i.split()) for i in sys.stdin]
[print(len(str(b+c))) for b,c in a]

Solution (Python):
import sys
for a in sys.stdin:
    b,c=map(int,a.split())
    d=len(str(b+c))
    print(d)

Solution (Python):
import sys
a=[map(int,i.split())for i in sys.stdin]
[print(len(str(b+c)))for b,c in a]

Solution (Python):

remaining_questions = True
while remaining_questions:
    try:
        value_a, value_b = map(int, input().split(" "))
        print(len(str(value_a + value_b)))
    except:
        remaining_questions = False

Solution (Python):
def main():
	import sys

	for line in sys.stdin:
		a, b = map(int, line.split())
		c = a + b
		digits = 1
		while c // 10 != 0:
			c = c // 10
			digits += 1

		print(digits)

if __name__ == '__main__':
	main()

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

Solution (Python):
import sys

for line in sys.stdin:
    a, b = list(map(int, line.split()))

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

Solution (Python):
try:
 while True:
  a,b=map(int,input().split())
  digit=(a+b)
  digit2=str(digit)
  print(len(digit2))
except:
   pass

Solution (Python):
try:
    while True:
        a,b = map(int, input().split())
        print(len(str(a+b)))
except:
    pass

Solution (Python):
import sys

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

Solution (Python):
from sys import stdin
import math
import fileinput

for line in fileinput.input():
    a, b = [int(n) for n in line.split()]
    print(math.floor(math.log10(a + b) + 1))

Solution (Python):
import fileinput
for line in fileinput.input():
    a, b = map(int, line.split())
    print(len(str(a + b)))

Solution (Python):
import sys;

for line in sys.stdin:
	a = [int(num) for num in line.split()];
	sum = a[0] + a[1];
	count = 0;
	while sum > 0:
		count += 1;
		sum //= 10;
	print(count);

Solution (Python):
try:
    s = []
    while True:
        l = input().split()
        t = int(l[0]) + int(l[1])
        n = str(t)
        print(len(n))
except EOFError:
    pass

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

Solution (Python):
import math

while True:
    try:
        line = input().split(" ")
        if(len(line) != 2):
            exit()
        a = int(line[0])
        b = int(line[1])
        print(int(math.log10(a+b))+1)
    except:
        break

Solution (Python):
import math

while True:
    try:
        line = input().split(" ")
        a = int(line[0])
        b = int(line[1])
        print(int(math.log10(a+b))+1)
    except:
        break

Solution (Python):
import math
while True:
    try:
        line = input().split(" ")
        a = int(line[0])
        b = int(line[1])
        print(int(math.log10(a+b))+1)
    except:
        break

Solution (Python):
import math

while True:
    try:
        line = input().split(" ")
        print(int(math.log10(int(line[0])+int(line[1])))+1)
    except:
        break

Solution (Python):
import math

while True:
    try:
        line = input().split(" ")
        print(int(math.log10(int(line[0])+int(line[1])))+1)
    except:
        exit()

Solution (Python):
import math
while True:
    try:
        line = input().split(" ")
        print(int(math.log10(int(line[0])+int(line[1])))+1)
    except:
        break

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

Solution (Python):
import sys
[print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]

Solution (Python):
import sys,math
for x,y in (line.split() for line in sys.stdin):print(int(math.log10(int(x)+int(y))+1))

Solution (Python):
while 1:
    try:
        x,y=input().split()
        k=int(x)+int(y)
        print(len(str(k)))
    except EOFError:
        break

Solution (Python):
while True:
    try:
        a, b = map(int, input().split())
    except EOFError:
        break
    count=1
    k=a+b
    while k>=10:
        k//=10
        count+=1
    print(count)

Solution (Python):
import sys

def main():
    """ ????????? """
    istr = sys.stdin.read()
    wi = istr.splitlines()
    for i in wi:
        a = list(map(int,i.split()))
        b = str(a[0] + a[1])
        print(len(b))

if __name__ == '__main__':
    main()

Solution (Python):
import sys

for line in sys.stdin:
    datas =line.split()
    if (len(datas)):
        v = int(datas[0]) + int(datas[1])
        print(len(str(v)))
    else:
        break

Solution (Python):
import sys
def main():
    for line in sys.stdin:
        a, b = map(int, line.split())
        print(len(str(a + b)))

if __name__ == "__main__":
    main()

Solution (Python):
lst = []
for i in range(200):
    try:
        lst.append(input())
    except EOFError:
        break

print(*[len(str(sum([int(num) for num in string.split(' ')]))) for string in lst], sep='\n')

Solution (Python):


import sys, math, os


PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


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

Solution (Python):




import sys
import math

list = ["2","3"]
r = sys.stdin.readlines()

n = [[int(i) for i in (j.split())] for j in r]


for j in n:
    a = sum(j)
    d = int(math.log10(a)) + 1
    print(d)

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

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

Solution (Python):
import sys
if __name__ == "__main__":
    for i in sys.stdin:
        a,b = list(map(int,i.strip().split()))
        print(len(str(a+b)))

Solution (Python):
import fileinput as fi
if __name__ == "__main__":
    for i in fi.input():
        a,b = list(map(int,i.strip().split()))
        print(len(str(a+b)))

Solution (Python):
try:
    while True:
        a,b=map(int, input().split())
        print(len(str(a+b)))
except EOFError:
    pass

Solution (Python):
import sys
for l in sys.stdin:
    n, m = map(int, l.split())
    print(len(str(n+m)))

Solution (Python):
import sys

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

Solution (Python):
import sys
[print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]

Solution (Python):
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])

Solution (Python):
import sys

for line in sys.stdin:
    sum = 0
    for x in line.split():
        sum += int(x)
    print(len(str(sum)))

Solution (Python):
import sys
for line in sys.stdin:
    print(len(str(sum(list(map(int, line.split()))))))

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

Solution (Python):
while True:
    try:
        inputNums = list(map(int, input().split()))
        print(len(str(inputNums[0] + inputNums[1])))
    except:
        break

Solution (Python):
import math
import sys

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

Solution (Python):
import sys

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

Solution (Python):
import sys

for s in sys.stdin:
  a,b = s.split(' ')
  c = int(a) + int(b)
  i = 1

  while c >= 10:
    c = c / 10
    i = i + 1

  print i

Solution (Python):
import sys
for line in sys.stdin:
	a = int(line.split()[0])
	b = int(line.split()[1])
	s = a + b
	print(len(str(s)))

Solution (Python):
import sys

d = sys.stdin.readline()
while d:
    a, b = map(int,d.split())
    print(len(str(a+b)))
    d = sys.stdin.readline()

Solution (Python):
import math
t = 0
while t == 0:	
	try:
		x,y=[int(i) for i in input().split()]
	except:
		break
	else:
		a = int (math.log10(x + y) + 1)
		print(a)

Solution (Python):


import codecs
import sys

sys.stdout = codecs.getwriter("shift_jis")(sys.stdout) 
sys.stdin = codecs.getreader("shift_jis")(sys.stdin) 





"""
DEBUG = 0

if DEBUG == 0:
	a = []
	for i in range(200):
		deglist=[int(x) for x in input().split(" ")]
		a.append(deglist)
else:
	a = [[5,7],[1,99],[1000,999]]

for i in range(len(a)):
	wa = a[i][0] + a[i][1]
	print len(str(wa))
"""

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

Solution (Python):
import math

lst = []
while True:
    try:
        a, b = map(int, input().split())
        lst.append(int(math.log10(a+b))+1)
    except EOFError:
        for i in lst:
            print(i)
        break

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

Solution (Python):
import sys

def main():

    inputs = sys.stdin.readlines()
    for item in inputs:
        print(len(str(sum(tuple(map(int, item.split()))))))
    
main()

Solution (Python):
import sys

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

Solution (Python):


import fileinput

if __name__ == '__main__':
    for line in fileinput.input():
        digit = 0
        tokens = list(map(int, line.strip().split()))
        a, b = tokens[0], tokens[1]
        num = a + b

        print(len(str(num)))

Solution (Python):
from math import log10 as log
from sys import stdin
A = []
for po in stdin:
    S = list(map(int,po.split()))
    A.append(int(log(S[0]+S[1])+1))
for i in A:
    print(i)

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

Solution (Python):
import sys

l = sys.stdin.readlines()
for line in l:
    data = map(int, line.split(" "))
    print(len(str(data[0] + data[1])))

Solution (Python):

import math


while True:
    try:
        a, b = map(int, input().split())
    except EOFError:
        break
    c = a + b
    digit = int(math.log10(c) + 1)
    print(digit)

Solution (Python):


























import math
import fileinput

if __name__ == "__main__":
    for line in fileinput.input():
        a = int(line.split(" ")[0])
        b = int(line.split(" ")[1])
        data_size = int(math.log10(a+b) + 1)
        print(data_size)
    exit(0)

Solution (Python):
import sys

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

Solution (Python):

import sys
import math

for line in sys.stdin:
    l = map(int, line.split())
    print len(str(sum(l)))

Solution (Python):
import sys
import math

for line in sys.stdin:
    l = line.split()
    digit = int(math.log10(int(l[0]) + int(l[1]))) + 1
    print(digit)

Solution (Python):
import sys
import math

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

Solution (Python):
import sys
import math

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

Solution (Python):
import sys
import math

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

Solution (Python):
import math

def main():
    data = []
    while 1:
        try:
            n = input().split()
            a = int(n[0])
            b = int(n[1])
            ans = int(math.log10(a+b)+1)
            data.append(ans)
        except EOFError:
            break

    for i in data:
        print(i)

if __name__ == "__main__":
    main()

Solution (Python):


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

Solution (Python):
while True:
    try:
        a, b = map(int, input().split())
    except:
        break
    string = str(a+b)
    print(len(string))

Solution (Python):
results=[]
from sys import stdin
for line in stdin:
    a, b = (int(i) for i in line.split())
    results.append(len(str(a+b)))
for i in results:
    print i

Solution (Python):
res=[]

while 1:
    try:
        s=input()
        a,b = [int(x) for x in s.split()]
        res.append(a+b)
    except:
        for n in res:
            print(len(str(n)))
        break

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

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

Solution (Python):
import math

digit = []
while True:
    try:
        a,b =raw_input().split()
        c = int(a)+int(b)
        digit.append(int(math.log10(c) + 1))
    except:
        break
for i in range(0,len(digit)):
    print digit[i]

Solution (Python):
import sys

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

Solution (Python):
import sys
def main():
    for line in sys.stdin:
        A = list(map(int,line.split()))
        C = A[0]+A[1]
        count = 0
        while True:
            C/=10
            if C < 1:
                break
            count += 1
        print(count+1)

if __name__ == '__main__':
    main()

Solution (Python):
import sys
import math

for line in sys.stdin:
  try:
    a, b = [int(i) for i in line.split()]
    print(int(math.log10(a + b) + 1))
  except:
    break

Solution (Python):
import sys
for i in sys.stdin:
    a,b = map(int, i.split())
    print(len(str(a+b)))

Solution (Python):
while True:
    try:
        input_line = input()
        if input_line == '':
            break
        else:
            print(len(str(sum(map(int, input_line.split())))))
    except EOFError:
        break

Solution (Python):
import sys

a = ""
for input in sys.stdin:
    a += input
l = a.split()
for i in range(0,len(l),2):
    print len(str(int(l[i])+int(l[i+1])))

Solution (Python):
import math

def get_input():
    while True:
        try:
            yield ''.join(input())
        except EOFError:
            break

line = list(get_input())
for l in range(len(line)):
    a,b = [int(i) for i in line[l].split()]
    S = a + b
    keta = 0
    while S > 0:
        S = math.floor(S / 10)
        keta = keta + 1
    print(keta)

Solution (Python):
try:
    while True:
        a, b = [int(x) for x in input().strip().split(' ')]
        print(len(list(str(a+b))))
except EOFError:
    pass

Solution (Python):
while True:
    try:a,b=map(int,input().split())
    except:break
    if a=="" or b==":":
        break
    c=a+b
    ans=0
    if c>=0 and c<=9:
        ans=1
    if c>=10 and c<=99:
        ans=2
    if c>=100 and c<=999:
        ans=3
    if c>=1000 and c<=9999:
        ans=4
    if c>=10000 and c<=99999:
        ans=5
    if c>=100000 and c<=999999:
        ans=6
    if c>=1000000 and c<=9999999:
        ans=7

    print(ans)

Solution (Python):
while True:
    try:a,b=map(int,input().split())
    except:break
    c=a+b
    ans=0

    while c>9:
        c=c//10
        ans+=1
    ans+=1
    print(ans)

Solution (Python):
import sys
for e in sys.stdin.readlines():
 print(len(str(eval('+'.join(e.split())))))

Solution (Python):
import sys
for e in sys.stdin.readlines():
 print(len(str(eval('+'.join(e.split())))))

Solution (Python):
import sys
for e in sys.stdin.readlines():
 print(len(str(sum(map(int,e.split())))))

Solution (Python):
while 1:
 try:print(len(str(sum(map(int,input().split())))))
 except:break

Solution (Python):
import sys
for e in sys.stdin:
 print(len(str(sum(map(int,e.split())))))

Solution (Python):
import sys
for e in sys.stdin:
 print(len(str(eval('+'.join(e.split())))))

Solution (Python):
import sys
for e in sys.stdin.readlines():
 print(len(str(sum(map(int,e.split())))))

Solution (Python):
import sys
for e in sys.stdin.readlines():
 print(len(str(sum(map(int,e.split())))))

Solution (Python):
import sys
for e in sys.stdin:print(len(str(sum(map(int,e.split())))))

Solution (Python):
from sys import stdin
for line in stdin:
    print(len(str(sum(map(int, line.split())))))

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

Solution (Python):
while 1:
    try:
        print(len(str(sum(map(int, input().split())))))
    except:
        break

Solution (Python):
import sys

num_of_data = 1
while True:
    if num_of_data > 200:
        break

    try:
        a, b = input().split()
         
    except EOFError:
        sys.exit()
        
    a = int(a)
    b = int(b)
    if a >= 0 and a <= 1000000000:
        if b >= 0 and b <= 1000000000:     
            num_of_data += 1
            sum = a+b
            cnt = 1
            while True:
                if sum < 10:
                    break
                sum /= 10
                cnt += 1
            print(cnt)

Solution (Python):

import sys
line = sys.stdin.readlines()

for i in line:
    
    b = list(map(int, i.split(" ")))
    c = 1
    d = b[0] + b[1]
    while(d >= 10):
        c += 1
        d = d / 10
    print(c)

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

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

Solution (Python):
def compute_digits_num(a,b):
    c = a + b
    s = 0
    for c in str(c):
        s += 1
    return s

try:
    while True:
        a, b = list(map(int, input().split()))
        print(compute_digits_num(a,b))
except:
    pass

Solution (Python):
import math
while True:
    try:
        a,b = [int(x) for x in input().split()]
        x = a + b        
        print(int(math.log10(x))+1)
    except:
        break

Solution (Python):
while True:
    try:
        a, b = (int(x) for x in raw_input().split())
        s = a + b
        num_digits = 0
        while s > 0:
            s /= 10
            num_digits += 1
        print num_digits
    except EOFError:
        break

Solution (Python):
while True:
    try:
        print(len(str(sum(list(map(int, input().split()))))))
    except EOFError:
        break

Solution (Python):
while True:
  try:
    a,b = list(map(int,input().split()))
    print(len(str(a+b)))
  except EOFError:
    break

Solution (Python):


import collections
import sys

def read_prob():
    inputs = []
    try:
        while True:
            line = input().strip().split()
            a, b = line[0], line[1]
            inputs.append(int(a) + int(b))
    except EOFError:
        pass
    return inputs

if __name__ == '__main__':
    inputs = read_prob()
    for inp in inputs:
        answer = len(str(inp))
        print(answer)

Solution (Python):
l = list(map(int, input().split()))

while(l != []):
    try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break

Solution (Python):
while 1:
    try:
        a, b = map(int, input().split())
        ans = 1
        while (a+b)/(10**ans) >= 1:
            ans += 1
        print(str(ans))
    except EOFError:
        break

Solution (Python):
while True:
	try:
		a,b=map(int,raw_input().split())
		print len(str(a+b))
	except EOFError:
		break

Solution (Python):

A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))

Solution (Python):
import sys
for i in sys.stdin:print(len(str(sum(map(int, i.split())))))

Solution (Python):
while True:
    try:
        a, b = map(int,input().split())
        s = str(a + b)
        print(len(s))
    except EOFError:
        break

Solution (Python):
while True:
    try:
        a, b = map(int, input().rstrip().split())
        print(len(str(a + b)))
    except Exception:
        break

Solution (Python):
import sys
c=[len(str(sum(map(int,line.split())))) for line in sys.stdin]
[print(i) for i in c]

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

Solution (Python):
from sys import stdin
for line in stdin:
    a,b = line.split(" ")
    c = int(a)+int(b)
    print(len(str(c)))

Solution (Python):
a = []
while True:
    try:
        a.append(list(map(int, input().split())))
    except EOFError:
        break

for i in a:
    print(len(str(i[0] + i[1])))

Solution (Python):



while True:
    try:
        a = list(map(int, input().split()))
        print(len(str(a[0] + a[1])))
    except EOFError:
        break

Solution (Python):
import sys

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