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: Wrong Answer

Solution code:
# coding: utf-8

import codecs
import sys

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

# ??\??¬?????????print??????????????´?????? print(u'?????????') ??¨??????
# ??\??¬?????????input??? input(u'?????????') ??§OK
# ??°?¢???????????????????????????´??????6,7???????????????????????¢??????

DEBUG = 1

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

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
# usr/bin/python
# coding: utf-8
################################################################################
# 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
#
################################################################################

import math

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

Submission status: Wrong Answer

Solution code:
import sys

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

Submission status: Wrong Answer

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

def digNum(num):
    if num <= 0:
        return 1
    else:
        return int (math.log10(num) + 1)

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

Submission status: Wrong Answer

Solution code:
import sys

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

Submission status: Wrong Answer

Solution code:
import sys
import math

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

Submission status: Wrong Answer

Solution code:
import sys
import math

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

Submission status: Wrong Answer

Solution code:
import math

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

    for i in data:
        print(i)

Submission status: Wrong Answer

Solution code:
def main():
    for i in range(3):
        A = list(map(int,input().split()))
        C = A[0]+A[1]
        count = 0
        while True:
            C/=10
            if C < 1:
                break
            count += 1
        print(count+1)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a = raw_input() ;l = a.split(); print(len(str(l[0]))) if (len(l) != 2) else len(str(int(l[0])+ int(l[1])))

Submission status: Wrong Answer

Solution code:
a = raw_input() ;l = a.split(); print(len(str(l[0]))) if (len(l) != 2) else (len(str((int(l[0]) + int(l[1]))))) if(int(l[0]) + int(l[1]) > 0) else (len(str((int(l[0]) + int(l[1])))) - 1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
c=a+b
ans=0
if c>=0 and c<=9:
    ans=1
if c>=10 and c<=99:
    ans=2
if c>=100 and c<=999:
    ans=3
if c>=1000 and c<=9999:
    ans=4
if c>=10000 and c<=99999:
    ans=5
if c>=100000 and c<=999999:
    ans =6
if c>=1000000 and c<=9999999:
    ans=7
print(str(ans))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
a, b = map(int, input().split())
ans = a + b
print(int(math.log10(ans)) + 1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
a,b = [int(x) for x in input().split()]
x = a + b
print(int(math.log10(x))+1)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

import collections
import sys

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

if __name__ == '__main__':
    inputs = read_prob()
    for i in range(3):
        answer = len(str(inputs[i]))
        print(answer)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

import collections
import sys

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

if __name__ == '__main__':
    inputs = read_prob()
    for i in range(3):
        answer = len(str(inputs[i]))
        print(answer)

Submission status: Wrong Answer

Solution code:
a, b = input().split()
n = a + b
num = int(n)
count = 0
while num:
    i = num % 10
    num = num // 10
    if i is 0:
        continue
    else:
        count += 1
print(count)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
sum = a + b
digits = 1
while(sum//10 != 0):
    digits += 1
    sum //= 10
print(str(digits))

Submission status: Wrong Answer

Solution code:
import sys
a = []
for line in sys.stdin:
    a.append(line)
for i in a:
    print(i[0] + i[1])

Submission status: Wrong Answer

Solution code:
import sys
a = []
for line in sys.stdin:
    a.append(line)
for i in a:
    sum = i[0] + i[1]
    print(len(str(sum)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys, math

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

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

if __name__ == '__main__':
    run()

Submission status: Wrong Answer

Solution code:
a,b = map(int,raw_input().split())
d = 0
c = a+b
while c > 1:
  c /= 10
  d += 1



print d

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#condig: UTF-8

n = map(int, raw_input().split())
s = len(str(n[0] + n[1]))
print s

Submission status: Wrong Answer

Solution code:
n = map(int, raw_input().split())
s = len(str(n[0] + n[1]))
print s

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


def main():
    inputs = []
    while 1:
        try:
            inputs.append(raw_input())
        except EOFError:
            break
    for line in inputs:
        print (lambda a, b: len(str(a + b)))(*line.split(" "))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x=raw_input()
a=int(x[0])
b=int(x[2])

def digit_num(a):
    def digit_num_sub(a,n):
        if a/(10**n)<10:
            return n+1
        else:
            return digit_num_sub(a,n+1)
    return digit_num_sub(a,0)

print digit_num(a+b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = map(int,raw_input().split(' '))
a = x[0]+x[1]
if 0<=a<10:
	print 1
elif 10<=a<100:
	print 2
elif 100<=a<1000:
	print 3
elif 1000<=a<10000:
	print 4
elif 10000<=a<100000:
	print 5
elif 100000<=a<1000000:
	print 6
else:
	print 7

Submission status: Wrong Answer

Solution code:
x = map(int,raw_input().split(' '))
a = x[0]+x[1]
if 0<a<10:
	print 1
elif 9<a<100:
	print 2
elif 99<a<1000:
	print 3
elif 999<a<10000:
	print 4
elif 9999<a<100000:
	print 5
elif 99999<a<1000000:
	print 6
else:
	print 7

Submission status: Wrong Answer

Solution code:
import math
x = map(int,raw_input().split(' '))
a = math.log10(x[0] + x[1])
print(int(a)+1)

Submission status: Wrong Answer

Solution code:
import math
x = map(int,raw_input().split(' '))
a = math.log10(x[0] + x[1])
print(int(a)+int(1))

Submission status: Wrong Answer

Solution code:
import sys

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

Submission status: Wrong Answer

Solution code:
print len(str(sum(map(int,raw_input().split()))))

Submission status: Wrong Answer

Solution code:
data = ["5 7", "1 99", "1000 999"]
for i in data:
    x, y = i.split()
    a, b = int(x), int(y)
    if 100000 <= a + b:
        print 6
    elif 10000 <= a + b:
        print 5
    elif 1000 <= a + b:
        print 4
    elif 100 <= a + b:
        print 3
    elif 10 <= a + b:
        print 2
    elif 0 <= a + b:
        print 1

Submission status: Wrong Answer

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

except EOFError:
    pass

print data
for i in data:
    x, y = i.split()
    a, b = int(x), int(y)
    if 100000 <= a + b:
        print 6
    elif 10000 <= a + b:
        print 5
    elif 1000 <= a + b:
        print 4
    elif 100 <= a + b:
        print 3
    elif 10 <= a + b:
        print 2
    elif 0 <= a + b:
        print 1

Submission status: Wrong Answer

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

except (EOFError):
    pass

print data
for i in data:
    x, y = i.split()
    a, b = int(x), int(y)
    if 100000 <= a + b:
        print 6
    elif 10000 <= a + b:
        print 5
    elif 1000 <= a + b:
        print 4
    elif 100 <= a + b:
        print 3
    elif 10 <= a + b:
        print 2
    elif 0 <= a + b:
        print 1

Submission status: Wrong Answer

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

except (EOFError):
    pass

print data
for i in data:
    x, y = i.split()
    a, b = int(x), int(y)
    if 100000 <= a + b:
        print 6
    if 10000 <= a + b:
        print 5
    if 1000 <= a + b:
        print 4
    if 100 <= a + b:
        print 3
    if 10 <= a + b:
        print 2
    if 0 <= a + b:
        print 1

Submission status: Wrong Answer

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

except EOFError:
    pass

for i in data:
    x, y = i.split()
    a, b = int(x), int(y)
    if 100000 <= a + b:
        print 6
    elif 10000 <= a + b:
        print 5
    elif 1000 <= a + b:
        print 4
    elif 100 <= a + b:
        print 3
    elif 10 <= a + b:
        print 2
    elif 0 <= a + b:
        print 1

Submission status: Wrong Answer

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

except EOFError:
    pass

ans = []
for i in data:
    x, y = i.split()
    a, b = int(x), int(y)
    if 100000 <= a + b:
        ans.append(6)
    elif 10000 <= a + b:
        ans.append(5)
    elif 1000 <= a + b:
        ans.append(4)
    elif 100 <= a + b:
        ans.append(3)
    elif 10 <= a + b:
        ans.append(2)
    elif 0 <= a + b:
        ans.append(1)
for i in ans:
    print i

Submission status: Wrong Answer

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

except EOFError:
    pass

ans = []
for i in data:
    x, y = i.split()
    a, b = int(x), int(y)
    if 100000 <= a + b <= 1000000:
        ans.append(6)
    elif 10000 <= a + b:
        ans.append(5)
    elif 1000 <= a + b:
        ans.append(4)
    elif 100 <= a + b:
        ans.append(3)
    elif 10 <= a + b:
        ans.append(2)
    elif 0 <= a + b:
        ans.append(1)
for i in ans:
    print i

Submission status: Wrong Answer

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

except EOFError:
    pass

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

Submission status: Wrong Answer

Solution code:
list = raw_input().split()
print len(str(int(list[0])+int(list[1])))

Submission status: Wrong Answer

Solution code:
list = raw_input().split()
print len(str(eval(list[0])+eval(list[1])))

Submission status: Wrong Answer

Solution code:
import sys
import math

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

Submission status: Wrong Answer

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

i = raw_input()
a = int(i.split(" ")[0])
b = int(i.split(" ")[1])

s = a + b

ans = 0

while(s >= 1):
    s /= 10
    ans += 1

print ans

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python

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

if __name__ == "__main__":
        print "%d\n" % dn(*get()),

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
[a, b] = map(int, raw_input().split(" "))
n = a+b

ans = 1
while(n >= 10):
    n /= 10
    ans += 1

print ans

Submission status: Wrong Answer

Solution code:
import sys
try:
    a,b=map(int,raw_input().split())
    print a+b
except:
    sys.exit()

Submission status: Wrong Answer

Solution code:
import sys
while 1:
    try:
        a,b=map(int,raw_input().split())
        print a+b
    except:
        sys.exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = raw_input().split()
ans = 0
i = 0
for i in range(len(a)):
    a[i] = int(a[i])
    while a[i] >= 1:
        a[i] = a[i]/10
        ans += 1
print ans

Submission status: Wrong Answer

Solution code:
a = raw_input().split()
ans = 0

for i in range(len(a)):
    a[i] = int(a[i])
    while a[i] >= 1:
        a[i] = a[i]/10
        ans += 1
print ans

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
(m,n) = map(int,raw_input().split())
print m + n

Submission status: Wrong Answer

Solution code:
import math


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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print "\n".join(["%dx%d=%d" % (i/10+1,i%10,((i/10)+1)*(i%10)) for i in range(1,99) if i%10!=0])

Submission status: Wrong Answer

Solution code:
print "\n".join(["%dx%d=%d" % (i/10,i%10,(i/10)*(i%10)) for i in range(10,100) if i%10!=0])

Submission status: Time Limit Exceeded

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

	except:
		print"hoge"

Submission status: Time Limit Exceeded

Solution code:
while True:
    inNums = input().strip().split()
    a = int(inNums[0])
    b = int(inNums[1])
    temp = a+b
    x = 0
    digitNum = 0
    while temp // 10**x > 0:
        digitNum = x
        print(x)
    
    if inNums == None:
        break
    break

Submission status: Time Limit Exceeded

Solution code:
def plus_and_check(list):
    sum_up = 0
    for i in range(len(list)-1):
        sum_up += list[i]
    i = 0
    while i < 8:
        number_1 = 10 * i
        number_2 = 10 * (i+1)
        if number_2  > sum_up and number_1 < sum_up:
            return i
        else:
            continue
        i = i + 1

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

Submission status: Time Limit Exceeded

Solution code:
def plus_and_check(list):
    sum_up = 0
    for i in range(len(list)-1):
        sum_up += list[i]
    i = 0
    while i < 8:
        number_1 = 10 * i
        number_2 = 10 * (i+1)
        if number_2  > sum_up and number_1 < sum_up:
            break
        else:
            continue
        i = i + 1
    return i

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

Submission status: Time Limit Exceeded

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

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

Submission status: Time Limit Exceeded

Solution code:
import math

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

Submission status: Time Limit Exceeded

Solution code:
x = map(int,raw_input().split(' '))
a = x[0]+x[1]
b = 1
c = 10**b
while True:
	if a/c != 0:
		b += 1
		continue
	else:
		break
print b

Submission status: Time Limit Exceeded

Solution code:
a = raw_input().split()

ans = 0

for i in range(len(a)):
    a[i] = int(a[i])
    while a[i] < 1:
        a[i] = a[i]/10
        ans += 1
print ans

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

#list = sys.stdin.readlines()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

# Volume0 - 0002 (http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys, math

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

Submission status: Accepted

Solution code:
#!/usr/bin/python
#-coding:utf8-

import sys

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

Submission status: Accepted

Solution code:
import math
while 1:
    try:
        print(int(math.log10(sum(map(int, input().split())))+1))
    except:
        break

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf8 -*-
import sys
import math
for s in sys.stdin:
    a,b = map(int, s.split(' '))
    print int(math.log10(a+b)) + 1

Submission status: Accepted

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

for line in sys.stdin:
    l = line.replace('\n', '')
    a, b = l.split()
    a = int(a)
    b = int(b)
    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:
        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:
#!/usr/bin/env python
# -*- 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
for line in sys.stdin.readlines():
    a,b = map(int, line.strip().split())
    print len(str(a+b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
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))

Submission status: Accepted

Solution code:
#! /usr/bin/python3

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 = raw_input()
		temp = a.split()
		x = int(temp[0]) + int(temp[1])
		c = str(x)
		print len(c)
	
	except:
		break

Submission status: Accepted

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

Submission status: Accepted

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

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:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
# -*- config: utf-8 -*-
if __name__ == '__main__':
	while 1:
		try:
			nums = map(int,raw_input().split())
			s = sum(nums)
			print len(str(s))
		except:
			break

Submission status: Accepted

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

Submission status: Accepted

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

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:
import sys
for l in sys.stdin: print len(str(sum(map(int,l.split()))))

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:
l = []
while True:
    try:
        s = raw_input()
    except:
        break
    l.append(len(str(sum(map(int, s.split())))))
for i in l:
    print i

Submission status: Accepted

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