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

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

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

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

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

Solution (Python):
def calculate_digit_num(num):
    z = num / 10
    if z == 0:
        return 1
    else:
        return 1 + calculate_digit_num(z)

while True:
    try:
        num_list = [int(num) for num in raw_input().split(' ')]
        print calculate_digit_num(sum(num_list))
    except:
        break

Solution (Python):

import sys
for s in sys.stdin:
	print len(str(int(s.rstrip().split()[0])+int(s.rstrip().split()[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(list(map(int, input().split()))))))
    except:
        break

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

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

Solution (Python):
import sys

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

Solution (Python):
import sys




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

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

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

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

Solution (Python):
def digits(x):
    i=0
    while (x>0):
        x/=10
        i+=1
    return i

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

Solution (Python):





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

Solution (Python):
while True:
    try:
        
        a = map(int,raw_input().split(' '))
        s = a[0] + a[1]
        c = 0
        while s > 0:
            s = s / 10
            c = c + 1
            if s <= 0:
                print c
                break
                
    except (EOFError):
        break

Solution (Python):
import sys, math

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

Solution (Python):



import sys

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

Solution (Python):
import math
while 1:
    try:
        print(int(math.log10(sum(map(int, input().split())))+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):
import sys
import math

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

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

Solution (Python):
def counts(num):
	countlist.append(len(str(num[0] + num[1])))

countlist = []
flag = True
while flag :
	try:
		counts(map(int, raw_input().split()))
	except:
		flag = False
		for x in countlist:
			print x

Solution (Python):

import sys
import math
for s in sys.stdin:
    a,b = map(int, s.split(' '))
    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):
import sys

for line in sys.stdin:
    l = line.replace('\n', '')
    a, b = l.split()
    a = int(a)
    b = int(b)
    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):
while True:
    try:
        a,b = map(int,raw_input().split())
        print len(str(a+b))
    except EOFError:
        break

Solution (Python):



import sys

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

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

Solution (Python):
import sys

def log10(num):
    log = 0
    while num > 0:
        log += 1
        num //= 10
    return log

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

Solution (Python):
from math import log10
while True:
	try:
		a, b = map(int, raw_input().split())
		print(int(log10(a+b)) + 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):
import math
while True:
    try:
        a,b = map(int,raw_input().split())
        print int(math.log10(a + b) + 1)
    except EOFError:
        break

Solution (Python):

import math
import sys

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

Solution (Python):


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

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

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

Solution (Python):
import sys
for jk in sys.stdin:
    L=jk.split(" ")
    sum = int(L[0])+int(L[1])
    digit = 1
    while sum>=10:
        sum = sum/10
        digit = digit + 1

    print digit

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

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

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

Solution (Python):

if __name__ == '__main__':
	while 1:
		try:
			nums = map(int,raw_input().split())
			s = sum(nums)
			print len(str(s))
		except:
			break

Solution (Python):
import sys
import math
for n in [int(math.log10(float(int(line.split()[0])+int(line.split()[1]))))+1 for line in sys.stdin]:
	print n

Solution (Python):
import sys
for n in [sum([int(m) for m in l.split()]) for l in sys.stdin]:
	print len(str(n))

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

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

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

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

Solution (Python):
l = []
while True:
    try:
        s = raw_input()
    except:
        break
    l.append(len(str(sum(map(int, s.split())))))
for i in l:
    print i

Solution (Python):


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

Solution (Python):
import math
while True:
    try:

        num1, num2 = map(int, input().split())
        sum_number = num1 + num2

        ans = int(math.log10(sum_number) + 1)
        print(ans)

    except:
        break

Solution (Python):
import sys

def main():
    for input_line in sys.stdin:
        num1 = int(input_line.split(' ')[0])
        num2 = int(input_line.split(' ')[1])
        
        sum = str(num1 + num2)
        
        count = 0
        for num in sum:
            count += 1
        else:
            print(count)
    
if __name__ == '__main__':
    main()

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

Solution (Python):
while 1:
	try:
		list = str(raw_input()).split()
		x = int(list[0]) + int(list[1])
		print "%d" % len(str(x))

	except:
		break

Solution (Python):


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

Solution (Python):
import sys

while (True):
    L = map(int, sys.stdin.readline().split())

    if L:
        (a, b) = L
        c = a + b
    
        cnt = 1
        while (c >= 10):
            c /= 10
            cnt += 1

        print cnt

    else:
        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,raw_input().split(' '))
        print len(str(a+b))
    except:
        break

'''
Sample Input
5 7
1 99
1000 999
'''

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

Solution (Python):
while True:
	try:
		value = input().split(" ")
		result = str(int(value[0]) + int(value[1]))
		print(len(result))
	except EOFError:
		break

Solution (Python):
import sys

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

Solution (Python):

 
def main():
    while True:
        try:
            IN=input()
            if IN=="":
                raise EOFError
            else:
                val=IN.split(" ")
                a=int(val[0])+int(val[1])

                i=1
                flag=True
                while flag:
                    a=a/10
                    if a<1:
                        flag=False
                    else:
                        i+=1

            print(i)
        except EOFError:
            break
  
if __name__ == '__main__':
    main()

Solution (Python):
import sys

while True:
    try:
	a,b = raw_input().split()
	c = int(a) + int(b)
	for i in range(10):
	    if c / (10**i) == 0:
		print (i)
		break
    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 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 EOFError:
        break

Solution (Python):
import sys


def main():
    for line in sys.stdin.readlines():
        a,b = [int(n) for n in line.split()]
        ret = a + b
        print len(str(ret))


main()

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

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

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

Solution (Python):
import sys

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

Solution (Python):
while True:
	try:
		a, b = map(int, raw_input().strip().split(' '))
		c = a + b
		ans = 0
		while c > 0:
			ans += 1
			c /= 10
		print ans
	except EOFError:
		break

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

Solution (Python):

import sys
list = sys.stdin.readlines()
for i in list:
    num = i[:-1].split(' ', 2)
    print(len(str(int(num[0])+int(num[1]))))

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

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

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

Solution (Python):
while True:
    try:
        a, b = map(int, input().split())
        i = a + b
        c = 1
        while i:
            if int(i/10) == 0:
                print(c)
                break
            c+=1
            i /= 10
    except Exception:
        break

Solution (Python):
import sys


def solve():
    a = []
    for line in sys.stdin:
        digit_list = line.split(' ')
        new_list = []
        for s in digit_list:
            new_list.append(int(s))
        a.append((new_list))
    for j in a:

        print str(len(str(sum(j))))	

if __name__ == '__main__':
    solve()

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

Solution (Python):
import sys
from math import log10, floor
print('\n'.join(map(str, [floor(log10(sum(map(int, ab.split())))) + 1 for ab in sys.stdin])))

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:
    data_set = map(int, raw_input().split())
  except EOFError:
    break
  count = 0
  a = data_set[0]
  b = data_set[1]
  sum = a + b
  while sum > 0:
    sum /= 10
    count += 1
  print count

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

Solution (Python):
import string
import sys
import math


ip = sys.stdin.readlines()
ip_list = {}
for i in range(len(ip)):
    ip_list[i] = ip[i].strip("\n").split()

for i in range(len(ip)):
    ans = int(ip_list[i][0]) + int(ip_list[i][1])
    print( int(math.log10(ans)+1) )

Solution (Python):
import sys
import math

ary=[]
ans=[]
for i in sys.stdin:
    ary.append(list(map(int,i.split())))
    ans.append(int(math.log10(sum(ary[-1]))+1))
print('\n'.join(map(str,ans)))

Solution (Python):
import sys
a = []
b = []

for i in sys.stdin:
    ta, tb = i.split()
    a.append(int(ta))
    b.append(int(tb))

for i in range(len(a)):
    print len(str(a[i]+b[i]))

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

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 EOFError:
        break

Solution (Python):
import math
while True:
	try:
		x,y=map(int,input().split())
		print(int(math.log10(x+y))+1)
	except EOFError:
		break

Solution (Python):
import sys

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

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

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

Solution (Python):


while True:
    try:
        i, n = map(int, raw_input(). split())
    except:
        break
    print(len(str(i + n)))

Solution (Python):
import sys

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

Solution (Python):
import sys,math

inputs = list()

for n in sys.stdin:
	inputs.append(list(map(int,n.split())))

for n in inputs:
	print(math.floor(math.log10(n[0]+n[1]))+1)

Solution (Python):


import sys

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

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

Solution (Python):

import sys
import math

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

for i in range(len(numbers)):
    sum = int(numbers[i][0]) + int(numbers[i][1])
    print int(math.log10(float(sum))) + 1

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

Solution (Python):


while True:
    try:
        i, n = input(). split()
        m = str(int(i) + int(n))
        print(len(m))
    except:
        break

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

Solution (Python):
import sys
l = []
for line in sys.stdin:
    l.append(line)

for i in range(len(l)):
    numl = l[i].split(' ')
    a = int(numl[0])
    b = int(numl[1])
    sum = a + b
    digitstr = "{0}".format(sum)
    print(len(digitstr))

Solution (Python):
import sys
l = []
for line in sys.stdin:
    l.append(line)

for i in range(len(l)):
    numl = l[i].split(' ')
    a = int(numl[0])
    b = int(numl[1])
    sum = a + b
    digitstr = "{0}".format(sum)
    print(len(digitstr))

Solution (Python):
import sys
l = []
for line in sys.stdin:
    l.append(line)

for i in range(len(l)):
    numl = l[i].split(' ')
    a = int(numl[0])
    b = int(numl[1])
    sum = a + b
    digitstr = "{0}".format(sum)
    print(len(digitstr))

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

Solution (Python):
import sys

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

Solution (Python):


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)))

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

Solution (Python):


def main():
	while True:		
		try:
			num = eval(input().replace(" ","+"))
		except:
			return
		else:
			print(len(str(num)))
if __name__ == '__main__':
  main()

Solution (Python):
import itertools
import operator

dataset = []
while True:
    try:
        dataset.append(input())
    except EOFError:
        break

for item in (sum(int(y) for y in x.split()) for x in dataset):
    print(len(str(item)))

Solution (Python):

import sys
for line in sys.stdin:
    a, b = map(int, line.split())
    i = a + b
    j = 1
    while i >= 10:
        i = i / 10
        j = j + 1
    print(j)

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):
ans_list=[]
while True:
	try:
		k=list(map(int,input().split(" ")))
		ans_list.append(k[0]+k[1])
	except:
		for i in ans_list:
			print(len(str(i)))
		break

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

Solution (Python):
while True:
  try:
    a, b = map(int, raw_input().split())

    print len(str(a+b))

  except EOFError:
    break

Solution (Python):
import math

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

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

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

Solution (Python):
def BigAdd(numa, numb):
	longer = (numa if len(numa) >= len(numb) else numb)
	shorter = (numa if len(numa) < len(numb) else numb)
	carry = 0
	s = ''
	for i in range(-1, -len(shorter) - 1, -1):
		curr = carry + int(longer[i]) + int(shorter[i])
		if curr >= 10:
			carry = 1
			s = str(curr - 10) + s
		else:
			carry = 0
			s = str(curr) + s
	for i in range(-len(shorter) - 1, -len(longer) - 1, -1):
		curr = carry + int(longer[i])
		if curr >= 10:
			carry = 1
			s = str(curr - 10) + s
		else:
			carry = 0
			s = str(curr) + s
	if carry == 1:
		s = '1' + s
	return s

while True:
	try:
		numa, numb = [item for item in input().split()]
		print(len(BigAdd(numa, numb)))
	except EOFError:
		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

d = sys.stdin.readlines()
for i in d:
    a, b = [int(x) for x in i.split()]
    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):
import sys

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

Solution (Python):
import sys

while True:
    data = sys.stdin.readline().strip()
    if data is None or data == '':
        break

    data = data.split(' ')
    num1 = int(data[0])
    num2 = int(data[1])
    sum = num1 + num2
    print(len(str(sum)))

Solution (Python):
def get_input():
    while True:
        try:
            yield ''.join(raw_input())
        except EOFError:
            break

if __name__ == '__main__':
    a = list(get_input())

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

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

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

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

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

Solution (Python):
import sys

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

Solution (Python):
import sys

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

Solution (Python):
import sys

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

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

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

Solution (Python):
import math
import sys

for line in sys.stdin:
    words=line.strip().split(" ")
    a=int(words[0])
    b=int(words[1])
    c=a+b
    if c!=0:
        print(int(1.0000001+math.log(c,10)))
    else:
        print(1)

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

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

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

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

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

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

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

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

Solution (Python):
from sys import stdin

for s in stdin:
    s = s[:-1]
    i = s.index(' ')
    a = int(s[0:i])
    s = s[i+1:]
    b = int(s)
    print len(str(a+b))

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:
    ns = list(map(int, line.split()))
    print(len(str(sum(ns))))

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

Solution (Python):


import sys

def get_digits(n):
    if n < 0:
        n *= -1
    return len(str(n))


def main():
    data = []
    for line in sys.stdin:
        a, b = map(int, line.split())
        digits = get_digits(a+b)
        print(digits)

if __name__ == '__main__':
    main()

Solution (Python):
rig=[int(i) for i in input().split(" ")]
while True:
    ke=rig[0]+rig[1]
    ans=1
    count=10
    while True:
        if ke<count:
            print(ans)
            break
        else:
            ans+=1
            count=count*10
    try:rig=[int(i) for i in input().split(" ")]
    except:break

Solution (Python):
import sys

for i in sys.stdin:
    print(len(str(sum(map(int,i.replace("\n", "").split(" "))))))

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

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

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

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

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:
        a, b = map(int, raw_input().split())
    except EOFError:
        break

    print len(str(a+b))

Solution (Python):
import sys
[print(len(str(sum([int(y) for y in x.split(" ")])))) for x in sys.stdin]

Solution (Python):
import sys
 
[print(len(str(y[0] + y[1]))) for y in [[int(z) for z in x.split()] for x in sys.stdin]]

Solution (Python):
import sys

[print(len(str(sum([int(j) for j in i.split()])))) for i in sys.stdin]

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

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

Solution (Python):
[print(len(str(i)))for i in[sum(int(e)for e in ln.split())for ln in __import__("sys").stdin]]

Solution (Python):
import sys

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

Solution (Python):
from math import log10, floor
while True:
    try:
        w = input()
    except EOFError:
        break
    w = list(map(int, w.split()))
    print(floor(log10(sum(w))+1))

Solution (Python):


import sys

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

Solution (Python):
import sys
values = []
for line in sys.stdin:
    values.append([int(x) for x in line.split()])
digit = 0
for x, y in values:
    sum = x + y; digit = 0
    while sum >= 1:
        sum //= 10
        digit += 1
    print(digit)

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

Solution (Python):
import sys

if __name__ == '__main__':
    
    for line in sys.stdin:
        a, b = line.strip().split(' ')
        c = int(a) + int(b)
        print(len(str(c)))

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

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

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

Solution (Python):

import sys

N = sys.stdin.read().splitlines()

for n in N:
    i, j = [int(i) for i in n.split()]
    print(len(str(i+j)))

Solution (Python):

import sys

N = sys.stdin.read().splitlines()

for n in N:
    i, j = [int(i) for i in n.split()]
    print(len(str(i+j)))

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