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:
sss = input().split()
while sss:
    a,b = int(sss[0]), int(sss[1])
    ab = a + b
    c = 1
    while ab // 10 > 0:
        c += 1
        ab //= 10
    print(c)
    try: sss = input().split()
    except EOFError: break

Submission status: Accepted

Solution code:
output = []
while True:
    try :
        a,b = map(int, input().split())
    except :
        break
    output.append(len(str(a+b)))
for x in range(len(output)):
    print(output[x])

Submission status: Accepted

Solution code:
import math

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

Submission status: Runtime Error

Solution code:
a, b = (int(x) for x in input.split())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def __main():

    x = input()
    y = input()

    z = x + y
    print(len(str(z)))


__main()

Submission status: Runtime Error

Solution code:
def __main():

    x = int(input())
    y = int(input())

    z = x + y
    print(len(str(z)))


__main()

Submission status: Runtime Error

Solution code:
def __main():

    a,b = input().split(" ")
    a = int(a)
    b = int(b)
    z = a + b
    print(len(str(z)))


__main()

Submission status: Runtime Error

Solution code:
a = input()
b = input()
c = str(int(a)+int(b))
print(len(c))

Submission status: Runtime Error

Solution code:
while 1:
    sum = input()
    if len(sum)<1:
        break
    else:
        sum_list = sum.split(" ")
        print(len(str(int(sum_list[0]) + int(sum_list[1]))))

Submission status: Runtime Error

Solution code:
i = 0
while i < 200:
    sum = input()
    if len(sum)<1:
        break
    else:
        sum_list = sum.split(" ")
        print(len(str(int(sum_list[0]) + int(sum_list[1]))))
    i += 1

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
i = 0
while i < 200:
    sum = input()
    sum_list = sum.split(" ")
    print(len(str(int(sum_list[0]) + int(sum_list[1]))))
    i += 1

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
import sys
for s in sys.stdin:
	print len(int(s.rstrip().split()[0])+int(s.rstrip().split()[1]))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print (len(str(int(input()) + int(input()))))

Submission status: Runtime Error

Solution code:
i = str(int(input()) + int(input()))
print (len(i))

Submission status: Runtime Error

Solution code:
i = int(input())
i += int(input())
i = str(i)
print (len(i))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def counts(num):
	if num:counts(map(int, raw_input().split()))
	if num:countlist.append(len(str(num[0]+num[1])))

countlist = []
counts(map(int, raw_input().split()))
countlist.reverse()
for x in countlist:
	print x

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 03 13:03:51 2015

@author: hirose
"""

while(1):
    n = map(int, raw_input().split())
    a = n[0]
    b = n[1]
    count = 1
    n = 10
    while(1):
        if((a+b)/n > 0):
            count += 1
            n = n*10
        else:
            break
        print count

Submission status: Runtime Error

Solution code:
while(1):
    n = map(int, raw_input().split())
    if(len(n) == 0):
        break
    a = n[0]
    b = n[1]
    count = 1
    n = 10
    while(1):
        if((a+b)/n > 0):
            count += 1
            n = n*10
        else:
            break
    print count

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
	a = raw_input()
	if a == "":
		break
	temp = a.split()
	x = int(temp[0]) + int(temp[1])

	c = str(x)
	print len(c)

Submission status: Runtime Error

Solution code:
while True:
    x=raw_input()
    if x=='':
        break
    L=x.split(" ")
    sum = int(L[0])+int(L[1])
    digit = 1
    while sum>=10:
        sum = sum/10
        digit = digit + 1

    print digit

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
print(len(str(a+b)))

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
print(len(str(a+b)))

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
c=a+b
print(len(str(c)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a = raw_input()
b = raw_input()

len(str(int(a) + int(b)))

Submission status: Runtime Error

Solution code:
a = raw_input()
b = raw_input()

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

Submission status: Runtime Error

Solution code:
from math import *

inputNum = []
for i in range(0, 3):
  inputNum.append(int(raw_input()))
  print int(log10(inputNum[i]) + 1)

Submission status: Runtime Error

Solution code:
from math import *

sumNum = []
i = 0
j = 0

while True:
  inputNum = map(int, raw_input().split())
  if inputNum == []:
    break
  else:
    sumNum.append(inputNum[0] + inputNum[1])
    i += 1

while i > j:
  print int(log10(sumNum[j]) + 1)
  j += 1

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
while True:
    try:
        num = input().split(" ")
        num1 = int(num[0])
        num2 = int(num[1])
        sum_number =　num1 + num2
        ans = int(math.log10(sum_number) + 1)
        print(ans)

    except:
        break

Submission status: Runtime Error

Solution code:
def main():
    while True:
        input_line = raw_input()
        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: Runtime Error

Solution code:
import math
while(True):
	date=input()
	date=date.split()
	date=int(date[0])+int(date[1])
	digit=int(math.log10(date))
	print(digit)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for i in range(200):
    s = raw_input()
    if s == '':
        break
    a,b = map(int,s.split(' '))
    print len(str(a+b))

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

Submission status: Runtime Error

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

s = []
for i in range(200):
    s.append(raw_input())
    if s[-1] == '':
        s.remove('')
        break
    
for i in s:
    a,b = map(int,i.split(' '))
    print len(str(a+b))

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

Submission status: Runtime Error

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

s = []
while True:
    s.append(raw_input())
    if s[-1] == '':
        s.remove('')
        break
    
for i in s:
    a,b = map(int,i.split(' '))
    print len(str(a+b))

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

Submission status: Runtime Error

Solution code:
import math

a = []
while True:
    b = [input() for i in range(2)]
    if b == [0, 0]
        break
    a.append(b)
for list in a:
    print math.log10(a[0]+a[1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys


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


main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#!/usr/bin/python3
import sys

def Dnum():
    
    str = " "
    while(str != '\n'):
        str = sys.stdin.readline()
        cnt = 0
        list = str.split(" ")
        num = int(list[0])+int(list[1])
        while(num >= 1):
            cnt=cnt+1
            num = num/10
        print(cnt)

Dnum()

Submission status: Runtime Error

Solution code:
flag = True
inNums = []
while flag:
    inNums.append(raw_input().strip().split())
    if inNums[-1] == []:
        flag = False
        
for i in range(len(inNums)-1):
    a = int(inNums[i][0])
    b = int(inNums[i][1])
    temp = a+b
    x = 0
    digitNum = 0
    while temp // (10**x) > 0:
        digitNum = x
        x += 1
    print(digitNum)

Submission status: Runtime Error

Solution code:
flag = True
i = 0
inNums = []
while flag:
    inNums.append(raw_input().strip().split())
    if inNums[-1] == []:
        flag = False
        
for i in range(len(inNums)-1):
    a = int(inNums[i][0])
    b = int(inNums[i][1])
    temp = a+b
    x = 0
    while temp // (10**x) > 0:
        x += 1
    print(x)

Submission status: Runtime Error

Solution code:
flag = True
i = 0
inNums = []
while flag:
    input = raw_input().strip().split()
    inNums.append(input)
    if input == []:
        flag = False
for i in range(len(inNums)-1):
    a = int(inNums[i][0])
    b = int(inNums[i][1])
    temp = a+b
    x = 0
    while temp // (10**x) > 0:
        x += 1
    print(x)

Submission status: Runtime Error

Solution code:
for i in input():
    i.sprit()
    a = int(i[i][0])
    b = int(i[i][1])
    temp = a+b
    x = 0
    while temp // (10**x) > 0:
        x += 1
    print(x)

Submission status: Runtime Error

Solution code:
for i in input():
    i.split()
    a = int(i[i][0])
    b = int(i[i][1])
    temp = a+b
    x = 0
    while temp // (10**x) > 0:
        x += 1
    print(x)

Submission status: Runtime Error

Solution code:
while 1:
    i = input().split()
    if not i:
        break

    print(len(str(sum(map(int, i)))))

Submission status: Runtime Error

Solution code:
while 1:
    i = input()
    if not i:
        break

    print(len(str(sum(map(int, i.split())))))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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]+a[1]))))

Submission status: Runtime Error

Solution code:
import math
a=int(input())
b=int(input())
print(math.ceil(math.log10(a*b)))

Submission status: Runtime Error

Solution code:
import math
nums = input().split()
print(math.ceil(math.log10(int(nums[0])*int(nums[1]))))

Submission status: Runtime Error

Solution code:
import sys,math

inputs = sys.stdin.readlines()
inputs = list(map(lambda x:list(map(int,x.split())),inputs))

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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

import sys
import math

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

Submission status: Runtime Error

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

import sys

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

Submission status: Runtime Error

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

import sys

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

Submission status: Runtime Error

Solution code:
# coding: utf-8
import sys
import math

numbers = []
for line in open('numberset.dat'):
    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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num = raw_input().split()
import math
print math.floor(math.log(num[1], 10))+1+math.floor(math.log(num[0]))+1

Submission status: Runtime Error

Solution code:
num = map(int, raw_input().split())
import math
print math.floor(math.log(num[1], 10))+1+math.floor(math.log(num[0]))+1

Submission status: Runtime Error

Solution code:
num = map(int, raw_input().split())
import math
print int(math.floor(math.log(num[1], 10))+1+math.floor(math.log(num[0]))+1)

Submission status: Runtime Error

Solution code:
num = map(int, raw_input().split())
import math
print int(math.floor(math.log(num[1], 10))+1+math.floor(math.log(num[0], 10))+1)

Submission status: Runtime Error

Solution code:
f = open('newfile.txt')
all = []
sums = f.read()
f.close()

lines = sums.split('\n')
for i in range(len(lines)):
	all.append(lines[i].split(' '))

for i in range(len(all)):
	keta = str(int(all[i][0]) + int(all[i][1]))
	print(len(list(keta)))

Submission status: Runtime Error

Solution code:
while True:
	try:
		N = map(int, input().split(' '))
		sums = N[0] + N[1]
		keta = list(str(sums))
		print(len(kata))
	except EOFError:
		break

Submission status: Runtime Error

Solution code:
try:
	lines = []
	while True:
		lines.append(map(int, input().split(' ')))
except EOFError:
	for i in range(len(lines)):
		sums = lines[i][0] + lines[i][1]
		print(len(str(sums)))

Submission status: Runtime Error

Solution code:
str = input()
l = []
while str != "0 0":
    l.append(str)
    str = input()

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: Runtime Error

Solution code:
str = input()
l = []
while True:
    l.append(str)
    str = input()

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: Runtime Error

Solution code:
import math
print(int(math.log10(int(input()) + 1)))

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

Solution code:
while True:
  inl=map(int, raw_input().split())
  num=inl[0]+inl[1]
  a=list(str(num))

  time=0
  for i in a:
    time+=1

  print time

Submission status: Runtime Error

Solution code:
while True:
  inl=map(int, raw_input().split())

  if inl==[]:
    break
  num=inl[0]+inl[1]
  a=list(str(num))

  time=0
  for i in a:
    time+=1

  print time

Submission status: Runtime Error

Solution code:
while True:
  inl=map(int, raw_input().split())

  if inl==[]:
  	break
  num=inl[0]+inl[1]
  a=list(str(num))

  time=0
  for i in a:
    time+=1

  print time

Submission status: Runtime Error

Solution code:
import sys
for i in sys.stdin:
  inl=map(int, raw_input().split())
  num=inl[0]+inl[1]
  a=list(str(num))

  time=0
  for i in a:
    time+=1

  print time

Submission status: Runtime Error

Solution code:
import sys

for i in sys.stdin:
  inl=i.split()
  a=inl[0]+inl[1]
  time=0
  for n in a
    time+=1
  print tie

Submission status: Runtime Error

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

Solution code:
a=input()
while a!=None:
    b=map(int,a.split())
    print(len(str(sum(b))))
    a=input()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

lis=[]
n=0
while n < 200:
    nums = list(map(int, input().split()))
    a=int(math.log(nums[0],10))+1)+(int(math.log(nums[1],10))+1)
    lis.append(a)

for i in lis:
    print(i)

Submission status: Runtime Error

Solution code:
import math

lis=[]
n=0
while n < 200:
    nums = list(map(int, input().split()))
    print(nums)
    a=int(1.0+math.log(nums[0],10))+int(1.0+math.log(nums[1],10))
    lis.append(a)

for i in lis:
    print(i)

Submission status: Runtime Error

Solution code:
import math

for n in range(200):
    nums = list(map(int, input().split()))
    a=int(1.0+math.log(nums[0],10))+int(1.0+math.log(nums[1],10))
    print(a)

Submission status: Runtime Error

Solution code:
import math

for n in range(200):
    nums = list(map(int, input().split()))
    if nums==[]:
        break
    else:
        if nums[0]==0:
            a=1
        else:
            a = int(1.0+math.log(nums[0],10))
        if nums[1]==0:
            b=1
        else:
            b = int(1.0+math.log(nums[1],10))
    print(a+b)

Submission status: Runtime Error

Solution code:
import math

for n in range(200):
    nums = list(map(int, input().split()))
    if nums==[]:
        break
    else:
        if nums[0]==0:
            a=1
        else:
            a = int(1.0+math.log(nums[0],10))
        if nums[1]==0:
            b=1
        else:
            b = int(1.0+math.log(nums[1],10))
        print(a+b)

Submission status: Runtime Error

Solution code:
import math
lis=[]
for n in range(200):
    nums = list(map(int, input().split()))
    if nums==[]:
        break
    else:
        if nums[0]==0:
            a=1
        else:
            a = int(1.0+math.log(nums[0],10))
        if nums[1]==0:
            b=1
        else:
            b = int(1.0+math.log(nums[1],10))
        lis.append(a+b)    
for i in lis:            
    print(i)

Submission status: Runtime Error

Solution code:
import math
import sys

for line in sys.stdin:
    words=line.strip().split(" ")
    a=int(words[0])
    b=int(words[1])

    if a==0:
        a=1
    else:
        a = int(1.0+math.log(a[0],10))
    if b==0:
        b=1
    else:
        b = int(1.0+math.log(b[1],10))
    print(a+b)

Submission status: Runtime Error

Solution code:
while True:
 a,b=[int(i) in input().split()]
 print(len(a+b))

Submission status: Runtime Error

Solution code:
while True:
 a,b=[int(i) for i in input().split()]
 if a==False:
  break
 print(len(a+b))

Submission status: Runtime Error

Solution code:
import sys
input_lines=sys.stdin.readlines()
for line in input_lines:
 x,y=[int(i) for i in line]
 print(len(str(x+y)))

Submission status: Runtime Error

Solution code:
import sys
input_lines=sys.stdin.readlines()
for line in input_lines:
 x=[int(i) for i in line]
 print(len(str(x[0]+x[1])))

Submission status: Runtime Error

Solution code:
while True:
    m,n = map(int,raw_input().split())
    a = list(str(m + n))
    print len(a)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
values = []
i = 0
while True:
    values.append([int(x) for x in input().split()])
    if [] == values[i] and 0 == len(values[i]):
        values.pop()
        break
    else:
        i += 1

sum = 0
digit = 0
for x, y in values:
    sum = x + y
    digit = 0
    while sum >= 1:
        sum //= 10
        digit += 1
    print(digit)

Submission status: Runtime Error

Solution code:
l = map(int, raw_input().split())
l1 = [int(i) for i in l]
sum = (l1[0] + l1[1])
import math
print(int(math.log10(sum) + 1))

Submission status: Runtime Error

Solution code:
l = map(int, raw_input().split())
l1 = [int(i) for i in l]
sum = (l1[0] + l1[1])
print(int(math.log10(sum) + 1))

Submission status: Runtime Error

Solution code:
while True:
    try:
        l = map(int, raw_input().split())
        l1 = [int(i) for i in l]
        sum = (l1[0] + l1[1])
        import math
        print(int(math.log10(sum) + 1))
    except EOFError:
        break

Submission status: Runtime Error

Solution code:
import math
while True:
    try:
        l = map(int, raw_input().split())
        l1 = [int(i) for i in l]
        sum = (l1[0] + l1[1])
        print(int(math.log10(sum) + 1))
    except EOFError:
        break

Submission status: Runtime Error

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

array = input().split()
a, b = int(array[0]), int(array[1])

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

Submission status: Runtime Error

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

while True:
    array = input().split()
    a, b = int(array[0]), int(array[1])
    
    x = a+b
    print(int(math.log10(x) + 1))

Submission status: Runtime Error

Solution code:
# -*- coding:utf-8 -*-
import sys
import math

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

for i in range(array):
    num = array[i].sprit(' ')
    a = num[0]
    b = num[1]
    n = a + b
    print(int(math.log10(x) + 1))

Submission status: Runtime Error

Solution code:
# -*- coding:utf-8 -*-
#Write a program which computes the digit number of sum of two integers a and b.
import sys
import math

array =[]
for line in sys.stdin:
    try:
        array.append(line)
    except EOFError:
        break
    
for i in range(array):
    num = array[i].sprit(' ')
    a = num[0]
    b = num[1]
    n = a + b
    print(int(math.log10(x) + 1))

Submission status: Runtime Error

Solution code:
def plus_and_check(list):
    sum_up = 0
    for i in range(len(list)-1):
        sum_up += list[i]
    


l = map(int, raw_input().split())
print "%d" % plus_and_check(l)

Submission status: Runtime Error

Solution code:
def plus_and_check(list):
    sum_up = sum(list)
    while i > 0:
        number_1 = 10 * i
        number_2 = 10 * (i+1)
        if number_2 > sum_up and sum_up > number_1:
            return i
        else:
            continue

l = map(int, raw_input().split())
print "%d" % plus_and_check(l)

Submission status: Runtime Error

Solution code:
def plus_and_check(list):
    sum_up = sum(list)
    while i > 0:
        number_1 = 10 * i
        number_2 = 10 * (i+1)
        if number_2 > sum_up and sum_up > number_1:
            return i
        else:
            continue
        i = i + 1

l = map(int, raw_input().split())
print "%d" % plus_and_check(l)

Submission status: Runtime Error

Solution code:
import sys

def plus_and_check(list):
    sum_up = sum(list)
    return len(str(sum_up))

a = []
for line in sys.stdin:
    a.append(map(iny, raw_input().split()))

answer = []
for i in range(len(a)):
    answer = plus_and_check(l)

for i in range(len(answer)):
    print answer[i]

Submission status: Runtime Error

Solution code:
import sys

def plus_and_check(list):
    sum_up = sum(list)
    return len(str(sum_up))

a = []
for line in sys.stdin:
    a.append(map(iny, raw_input().split()))

answer = []
for i in range(len(a)):
    answer = plus_and_check(a[i])

for i in range(len(answer)):
    print answer[i]

Submission status: Runtime Error

Solution code:
import sys

def plus_and_check(list):
    sum_up = sum(list)
    return len(str(sum_up))

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

answer = []
for i in range(len(a)):
    answer = plus_and_check(a[i])

for i in range(len(answer)):
    print answer[i]

Submission status: Runtime Error

Solution code:
import sys

def plus_and_check(lines):
a, b = lines.split()
number = a + b
return len(str(number))

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

answer = []
for i in range(len(a)):
    answer = plus_and_check(a[i])

for i in range(len(answer)):
    print answer[i]

Submission status: Runtime Error

Solution code:
import sys

def plus_and_check(lines):
c, d = lines.split()
number = c + d
return len(str(number))

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

answer = []
for i in range(len(a)):
    answer = plus_and_check(a[i])

for i in range(len(answer)):
    print answer[i]

Submission status: Runtime Error

Solution code:
import sys

def plus_and_check(lines):
c, d = lines.split()
number = c + d
return len(str(number))

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

answer = []

i = 0
while i < len(a):
    answer = plus_and_check(a[i])

j = 0
while j < len(answer):
    print answer[i]

Submission status: Runtime Error

Solution code:
import sys

def plus_and_check(lines):
c, d = lines.split()
number = c + d
return len(str(number))

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

i = 0
while i < len(a)-1:
    answer = plus_and_check(a[i])

j = 0
while j < len(answer)-1:
    print answer[i]

Submission status: Runtime Error

Solution code:
while True:
    line = input()
    if not line:
        break
    a, b = map(int, line.split())
    print(a + b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
    try:
        line = input()
    except EOFError:
        break
    for c in line:
        print(len(filter(lambda c: c in '123456789', line)))

Submission status: Runtime Error

Solution code:
while True:
    try:
        line = input()
    except EOFError:
        break
    print(len(filter(lambda c: c in '123456789', line)))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = (int(i) for i in input().split())
print(len(str(a+b)))

Submission status: Runtime Error

Solution code:
if __name__ == '__main__':

    nums = []

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

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