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



Sample input:
5 7
1 99
1000 999


Sample output:
2
3
4

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

	except:
		break

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
while True:
    try:
        a, b = map(int, raw_input().split())
        print len(str(a + b));
    except:break

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
#Problem Name: Digit Number
#ID: tabris
#Mail: t123037@kaiyodai.ac.jp

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
 
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()

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#@ /usr/bin/env python3.4
import sys
list = sys.stdin.readlines()
for i in list:
    num = i[:-1].split(' ', 2)
    print(len(str(int(num[0])+int(num[1]))))

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import string
import sys
import math

#??????????????\????????????ip?????\??????
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) )

Submission status: Accepted

Solution code:
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)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
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)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
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

Submission status: Accepted

Solution code:
#Digit Number

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

Submission status: Accepted

Solution code:
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)))

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
# -*-coding:utf-8-*-

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
	while True:		
		try:
			num = eval(input().replace(" ","+"))
		except:
			return
		else:
			print(len(str(num)))
if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:
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)))

Submission status: Accepted

Solution code:
#xs = [int(x) for x in input().split()]
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

    print len(str(a+b))

  except EOFError:
    break

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
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)))

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

    print len(str(a+b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
#coding: utf-8

import sys

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
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)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
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))

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

        print(len(c))
    except:
        break

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
import sys

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

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]

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
import sys
from math import log10

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)))

Submission status: Accepted

Solution code:
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)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

Submission status: Accepted

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

while True:
	try:
		solve()
	except:
		break

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
import sys
from operator import add

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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