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 math
import sys

for num in sys.stdin:
	num = num.split()
	a = int(num[0])
	b = int(num[1])
	size = int (math.log10(a+b) + 1)
	print(size)

Solution (Python):
import sys
for line in sys.stdin:
	l=0
	for l in range(len(line)):
		if(line[l] == ' '):
			p = l
			break
	a = line[0:p]
	b = line[p+1:]
	c = int(a)+int(b)
	d = 1
	while(int(c/10) != 0):
		d += 1
		c = int(c/10)
	print(d)

Solution (Python):



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

Solution (Python):
while True:
    try:
        a,b = map(int, input().split())
        d = 0
        s = sum([a,b])
        while (s):
            s //= 10
            d += 1
        print(d)
    except EOFError: break

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

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

Solution (Python):
import sys, math

def run():
    N = []
    for n in sys.stdin:
        a,b = map(int, n.split())
        N.append((a,b))

    for a,b in N:
        print(math.floor(math.log10(a+b)) + 1)

if __name__ == '__main__':
    run()

Solution (Python):
import sys
print "\n".join(str(len(str(sum(int(x) for x in l.split(' '))))) for l in sys.stdin)

Solution (Python):
while True:
    try:
        x = map(int, raw_input().split(" "))
        print len(str(x[0]+x[1]))

    except EOFError:
        break

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

Solution (Python):
import sys
import math

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

Solution (Python):

while True:
    try:
        x = [int(i) for i in raw_input().split(" ")]
        print len(str(x[0]+x[1]))
    except Exception:
        break

Solution (Python):
import sys

for i in sys.stdin.readlines():
    a, b = map(int, i.strip().split())
    print "{0}".format(len(str((a + b))))

Solution (Python):
while 1:
    try:
        line = raw_input()
    except EOFError:
        break
    arr = map((lambda x: int(x)), line.split())
    print len(str(arr[0]+arr[1]))

Solution (Python):


while True:
    try:
        n = map(int, raw_input().split())
        s = len(str(n[0] + n[1]))
        print s
    except Exception:
        break

Solution (Python):
import sys
import math

for i in sys.stdin.readlines():
    a, b = map(int, i.strip().split())
    print "{}".format(int(math.log10(a+b))+1)

Solution (Python):
import sys
for i in sys.stdin.readlines():
    x = i.split(" ")
    print len(str(int(x[0]) + int(x[1])))

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

Solution (Python):
while True:
    try:
        nums = map(int, raw_input().split(' '))
        
        ans = nums[0]+nums[1]
        
        x = 0
        while True:
            if (10**x -1) < ans < 10**(x+1):
                print x+1
                break
            else:
                x = x+1
    except EOFError:
        break

Solution (Python):





def main():
    while 1:
        try:
            input_data = raw_input()
        except EOFError:
            break
        print sum(map(int, input_data.split(" "))).__str__().__len__()

if __name__ == '__main__':
    main()

Solution (Python):
import sys,math
for i in sys.stdin.readlines():
    if not i.strip():break
    a, b = map(int, i.split())
    print int(math.log10(a+b))+1

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

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

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

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

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

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

Solution (Python):
while True:
 try:
  print len(str(sum(map(int, raw_input().strip().split(" ")))))
 except:
  break;

Solution (Python):

 
while True:
    try:
        n = map(int, raw_input().split())
        s = len(str(n[0] + n[1]))
        print s
    except Exception:
        break

Solution (Python):

 
while True:
    try:
        n = map(int, raw_input().split())
        s = len(str(n[0] + n[1]))
        print s
    except Exception:
        break

Solution (Python):

import sys

for l in sys.stdin:
    array = l.split()
    print len(str(int(array[0]) + int(array[1])))

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

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

Solution (Python):
from __future__ import absolute_import, print_function, unicode_literals
import sys

for line in sys.stdin:
    print(len(str(sum(int(n) for n in line.split()))))

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

Solution (Python):
try:
 for a in iter(raw_input,0):print len(str(sum(map(int,a.split()))))
except:pass

Solution (Python):
import sys

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

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

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

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

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

Solution (Python):
try:
    data = []
    while True:
        data.append(raw_input())

except EOFError:
    pass

for i in data:
    x, y = i.split()
    a, b = int(x), int(y)
    for j in range(1, 8): 
        if (a + b) / (10 ** j) < 1:
            print j
            break

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

Solution (Python):
import sys

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

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

Solution (Python):






import sys
import re




for line in sys.stdin:
    ab = map(int, re.split(" +", line))
    answer = reduce((lambda x, y: x + y), ab, 0)
    digits = len(str(answer))
    print digits

Solution (Python):
import sys

for line in sys.stdin:
	list = line.split()
	print len(str(eval(list[0])+eval(list[1])))

Solution (Python):
import math

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

    print(int(math.log10(a + b)) + 1)

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

Solution (Python):


while True:
    try:
        inp = raw_input()
        i = map(int, inp.split())
        a = i[0]
        b = i[1]
    
        s = a + b
    except:
        break
    
    ans = 0
    
    while s >= 1:
        s /= 10
        ans += 1
    
    print ans

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

Solution (Python):
import sys
import math
for line in sys.stdin:
    line = line.strip()
    print int(math.log10(int(line[:line.find(' ')]) + int(line[line.find(' ') + 1:])))+1

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

Solution (Python):


import math
import sys

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

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

Solution (Python):
import math
while True:
        try:
                a =map(int,raw_input().split())
                b = a[0] + a[1]
                print len(str(a[0]+a[1]))
        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):
while True:
  try: print len(str(sum(map(int,raw_input().split()))))
  except:break

Solution (Python):


import sys

results = []

for line in sys.stdin:
	results.append(int(line.split()[0]) + int(line.split()[1]))

for result in results:
	print len(str(result))

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

Solution (Python):
import sys
for line in sys.stdin:
	l = map(lambda i:int(i), line.split(' '))
	print len(str(l[0] + l[1]))

Solution (Python):
import sys

for line in sys.stdin:
    result = 0
    a, b = map(int, line.rstrip('\n').split(' '))
    x = a + b
    while x  > 0:
        result += 1
        x /= 10
    print result

Solution (Python):


dn = lambda a, b: len(str(a+b))
get = lambda: [int(x) for x in raw_input().split()]

if __name__ == "__main__":
    while True:
        try:
            print "%d" % dn(*get())
        except:
            break

Solution (Python):


dn = lambda a, b: len(str(a+b))
get = lambda: [int(x) for x in raw_input().split()]

if __name__ == "__main__":
    while True:
        try:
            print "%d" % dn(*get())
        except EOFError:
            break

Solution (Python):
import sys

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

Solution (Python):
import math
while 1:
    try:
        a, b = map(int,raw_input().split())
    except EOFError:
        break
    print int(math.log10(a+b)+1)

Solution (Python):
x = []
try:
	while True:
		a, b = map(int, raw_input().split())
		x.append(len(list(str(a + b))))
except EOFError:
	for i in x:
		print(i)

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

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

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

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

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

Solution (Python):


import sys

for line in sys.stdin.readlines():
    a, b = map(int, line.strip().split())
    n = a + b
    ans = 1
    while(n >= 10):
        n /= 10
        ans += 1
    print ans

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

Solution (Python):
import sys
for jk in sys.stdin:
    j,k=map(int,jk.split())
    print len(str(j+k))

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

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

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

Solution (Python):
import sys

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

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

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

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

Solution (Python):


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

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

Solution (Python):


import sys

for line in sys.stdin.readlines():
	a, b = map(int, line.strip().split())
	n = a + b
	ans = 1
	while(n >= 10):
		n /= 10
		ans += 1
	print ans

Solution (Python):
def digits(n):
    if n < 10: return 1
    c = 0
    while n > 0:
        c += 1
        n = n // 10

    return c

while 1:
    try:
        inp = input()
    except EOFError:
        break
    else:
        n, m = inp.split(' ')
        n = int(n)
        m = int(m)
        print(digits(n + m))

Solution (Python):



for line in open(0).readlines():
    a, b = map(int, line.split())
    c = a+b
    ans = +(c == 0)
    while c:
        ans += 1
        c //= 10
    print(ans)

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

Solution (Python):
for i in range(200):
    
    try:
        a,b=map(int,input().split())
        print(len(str(a+b)))
    except:
        pass

Solution (Python):
while 1:
    try:
        x,y = map(int, input().split())
    except EOFError:
        break
    count = 0
    sum = x+y
    while sum > 0:
        sum = sum // 10
        count += 1
    print(count)

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

Solution (Python):
num_list = []
while True:
    try:
        num_list.append(input().split())
    except EOFError:
        break

for i in num_list:
    if i != []:
        ans = len(str(int(i[0]) + int(i[1])))
        print(ans)

Solution (Python):
import math
while True:
    try:
        lst = list(map(int, input().split()))
        a, b = lst[0], lst[1]
        c = str(a+b)
        print(len(c))

    except EOFError:
        break

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

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

Solution (Python):
listal=[]
while True:
    try:
        listal.append(input())
    except EOFError:
        break
tyon=[]
for i in listal:
    lista=i.split()
    tyon.append(len(str(int(lista[0])+int(lista[1]))))
for i in tyon:
    print(i)

Solution (Python):
import math

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

  except:
    break

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

Solution (Python):
for line in open(0).readlines():
    a, b = map(int, line.split())
    c = a+b
    ans = +(c == 0)
    while c:
        ans += 1
        c //= 10
    print(ans)

Solution (Python):
line = []
try:
    while True:
        a,b = input().split(" ")
        d = int(a) + int(b)
        list = [c for c in str(d)]
        line.append(len(list))
except EOFError:
    for e in range(0,len(line)):
        print(line[e])

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 = map(int, input().split())
        c = a + b
        print(len(str(c)))

    except EOFError:
        break

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

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

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

Solution (Python):
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.readlines():
    a, b = map(int, line.split())
    print(len(str(a + b)))

Solution (Python):
def solve():
    from sys import stdin
    input_lines = stdin
    
    from math import log10
    
    for line in input_lines:
        a, b = map(int, line.split())
        
        if (a == 0 and b == 0):
            break
        
        print(int(log10(a + b)) + 1)

solve()

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

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

except Exception as ex:
    pass

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

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

Solution (Python):
while 1:
    try:print(len(str(sum(list(int(x) for x in input().split())))))
    except:break

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

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

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

Solution (Python):


while 1:
    try:
        line = input()
        lul = line.split()
        
        a = int(lul[0])+int(lul[1])
        print(len(str(a)))
    except:
        break

Solution (Python):
import sys

array = []
for line in sys.stdin:
    array.append(map(int, line.split(' ')))

for a, b in array:
    digit = 0
    c = a + b
    while c > 0:
        c = int(c / 10)
        digit = digit + 1
    
    print(digit)

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

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

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

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

Solution (Python):
import sys
for e in sys.stdin:
    a, b = map(int, e.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):
while 1:
    try: print(len(str(sum(list(map(int,input().split()))))))
    except: break

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

except EOFError:
    pass

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

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

Solution (Python):
k=[]
try:
  while True:
    k.append(list(map(int,input().split())))
except EOFError:
  pass
for x,y in k:
  print(len(str(x+y)))

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

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

    except:
        break

Solution (Python):
import sys

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

Solution (Python):
ans = []

while True:
  try:
    a, b = map(int, input().split())
  except:
    break
    
  s = str(a + b)
  cnt = len(s)
  ans.append(cnt)

for a in ans:
  print(a)

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):
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):
while True:
    try:
        a,b=map(int,input().split())
        c=a+b
        c=str(c)
        print(len(c))
    except:
        break

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(" "))
  except:break
  print(len(str(a+b)))

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

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

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

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

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

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

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 = list(map(int,input().split()))
        print(len(str(a+b)))
    except EOFError:
        break

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):
while 1:
    try:
        print(len(str(sum(map(int,input().split())))))
    except: break

Solution (Python):

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

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

Solution (Python):
while True:
  try:
    a,b = list(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):
while True:
    try:
        a,b=map(int,input().split())
    except:
        break
    print(len(str(a+b)))

Solution (Python):
while True:
  try:
    a,b = list(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):
while True:
    try:
        a,b = map(int,input().split(" "))
        print(len(str(a+b)))
    except: break

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

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

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

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

Solution (Python):
import sys
if __name__ == '__main__':

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

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

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

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

Solution (Python):
while True:
    try:
        s = [int(x) for x in input().split()]
    
        print(len(str(s[0]+s[1])))
        
    except:
        break

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

Solution (Python):
import sys

def digit(n):
	now = n
	cnt = 1
	while now / 10 != 0:
		cnt += 1
		now = now / 10
	return cnt

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

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

Solution (Python):
def degit(num):
    count = 0
    while num > 0:
        num //= 10
        count += 1
    return count

a = []
b = []
count = 0

while True:
    try:
        buff = input().split()
        a.append(int(buff[0]))
        b.append(int(buff[1]))
        count += 1
    except:
        break

for i in range(count):
    print(degit(a[i]+b[i]))

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

while True:
    try:
        solve()
    except:
        break

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

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

Solution (Python):
import sys
l=[[int(i) for i in l.split()] for l in sys.stdin]
for i in l:
    print(len(str(i[0]+i[1])))

Solution (Python):
import sys

for line in sys.stdin.readlines():
    i = line.rstrip().split(' ')
    j = int(i[0]) + int(i[1])
    a = str(j)
    print(len(a))

Solution (Python):
while True:
    try:
        a, b = (int(x) for x in input().strip().split(' '))
        sum = a + b
        digit = 0

        while sum >= 1 :
            sum = sum / 10
            digit += 1

        print(digit)

    except EOFError:
        break

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

Solution (Python):
for i in range(1, 200):

    try:
        str1 = input()
        list = str1.split(" ")
        result = len(str(int(list[0]) + int(list[1])))
        print(result)
    except:
        break

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

Solution (Python):
import math

while True:
    try:
        data = list(map(int,input().split()))
        sum = data[0] + data[1]
        sum_size = int (math.log10(sum) + 1)
        print(sum_size)
    except:
        break;

Solution (Python):
while True:
    try:
        a, b = [int(x) for x in 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:
        exit(0)

Solution (Python):
try:
    while True:
        a,b=[int(i) for i in input().split(" ")]
        c=a+b
        S=0
        while c>0:
            S+=1
            c=int(c/10)
        print(S)
except EOFError:
    pass

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

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

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

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

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

Solution (Python):
while True:
	try:
		n=list(map(int, input().split()))
	except EOFError:
		break
	a=n[0]+n[1]
	for i in range(0,10):
		if a/10**i<10:
			print(i+1)
			break

Solution (Python):
import sys 
for line in sys.stdin:
  a, b = line.split()
  a = int(a)
  b = int(b)
  c = a + b
  cnt = 0
  while c > 0:
    c //= 10
    cnt += 1
  print(cnt)

Solution (Python):
import sys

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

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

Solution (Python):
ans = []

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

    s = str(a + b)
    cnt = len(s)
    ans.append(cnt)

for a in ans:
    print(a)

Solution (Python):
from sys import stdin
for a in stdin :
    b = a.strip().split()
    b = sum([int(i) for i in b])
    c = 1
    while int(b/10) > 0:
        b = int(b/10)
        c += 1
    print(c)

Solution (Python):
while True:
    try:
        a, b = map(int,input().split())
        sum = a + b
        i = 0
        while i >= 0:
            c = 10**i
            if sum % c == sum:
                break
            else:
                i += 1
        print(i)
    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 sys

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

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

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