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

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

Submission status: Runtime Error

Solution code:
list=[]
while True:
    x =raw_input()
    if x == "":
        break
    list.append(x)

def list_sum_N(list,l):
    if not list == []:
        l.append(int(list[0].split()[0])+int(list[0].split()[1]))
        list.reverse()
        list.pop()
        list.reverse()
        return list_sum_N(list,l)
    else:
        return l

def Num_length(num):
    x = 0
    while num / 10 ** x >= 1:
        x = x + 1
    return x

def NumPlusNum_length(list):
    returnList=[]
    for lists in list_sum_N(list,[]):
        returnList.append(Num_length(lists))
    return returnList

for x in NumPlusNum_length(list):
    print x

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#encoding=utf-8
s=[]
while True :
    x=raw_input().split(' ')
    if len(x)!=2:
        break
    else:
        a=int(x[0])
        b=int(x[1])
        s.append(a)
        s.append(b)
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)
## 与えられた値,aを10**nかを返す。
a=0
while a <= len(s)-1:
    print digit_num(s[a]+s[a+1])
    a=a+2

Submission status: Runtime Error

Solution code:
s=[]
while True :
    x=raw_input().split(' ')
    if len(x)!=2:
        break
    else:
        a=int(x[0])
        b=int(x[1])
        s.append(a)
        s.append(b)
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)
a=0
while a <= len(s)-1:
    print digit_num(s[a]+s[a+1])
    a=a+2

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:


import math
while True:
	x = map(int,raw_input().split(' '))
	a = math.log10(x[0] + x[1])
	if x[0] != 'homoo...':
		print(int(a+1))
		continue
	else:
		break

Submission status: Runtime Error

Solution code:
import math
while True:
	x = map(int,raw_input().split(' '))
	a = math.log10(x[0] + x[1])
	if x[0] != 'homoo...':
		print(int(a+1))
		continue
	else:
		break

Submission status: Runtime Error

Solution code:
import math
while True:
	x = map(int,raw_input().split(' '))
	a = math.log10(x[0] + x[1])
	if str(x[0]) != 'homoo...':
		print(int(a+1))
		continue
	else:
		break

Submission status: Runtime Error

Solution code:
import math
while True:
	x = map(int,raw_input().split(' '))
	a =int( math.log10(x[0] + x[1]) + 1)
	if str(x[0]) != 'hellowork':
		print a
		continue
	else:
		break

Submission status: Runtime Error

Solution code:
while True:
	x = map(int,raw_input().split(' '))
	a =int( math.log10(x[0] + x[1]) + 1)
	if a <=1000000 :
		continue
	else:
		break

Submission status: Runtime Error

Solution code:
from sys import stdin

n=int(input())

for line in stdin:
    x=list(map(int,line.split()))
    x.sort()
    y=map(lambda t:t^2,x)
    if y[0]+y[1]==y[2]: print("YES")
    else: print("NO")

Submission status: Runtime Error

Solution code:
import math
while True:
	x = map(int,raw_input().split(' '))
	a =int( math.log10(x[0] + x[1]) + 1)
	if a <=1000000 :
		print a
		continue
	else:
		break

Submission status: Runtime Error

Solution code:
import math
while True:
	x = map(int,raw_input().split(' '))
	a =int(math.log10(x[0] + x[1]) + 1)
	if a <=1000000 :
		print a
		continue
	else:
		break

Submission status: Runtime Error

Solution code:
import math
while True:
	nums = raw_input()
	if nums != '':
		x = map(int,nums.split(' '))
		a =int(math.log10(x[0] + x[1]) + 1)
		print a
		continue
	else:
		break

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
import sys
import re


file = open(sys.argv[1], "r")

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

Submission status: Runtime Error

Solution code:
#
# AIZU ONLINE JUDGE: Digit Number
# cf. http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp
#


import sys
import re


file = open(sys.argv[1], "r")

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

file.close()

Submission status: Runtime Error

Solution code:
#
# AIZU ONLINE JUDGE: Digit Number
# cf. http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp
#


import sys
import re


#file = open(sys.argv[1], "r")

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
#coding UTF-8

import math
import sys

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

dn = lambda a, b: len(str(a+b))

if __name__ = "__main__":
    while True:
        a, b = raw_input().split()
        print "%d\n" % dn(a, b),

Submission status: Runtime Error

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

dn = lambda a, b: len(str(a+b))

if __name__ = "__main__":
        a, b = raw_input().split()
        print "%d\n" % dn(a, b),

Submission status: Runtime Error

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

dn = lambda a, b: len(str(a+b))

if __name__ == "__main__":
    while True:
        a, b = raw_input().split()
        print "%d\n" % dn(a, b),

Submission status: Runtime Error

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__":
    while True:
        print "%d\n" % dn(*get()),

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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__":
    while True:
        print "%d" % dn(*get())

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:
    import math
    a, b = map(int,raw_input().split())
    print int(math.log10(a+b) + 1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
    [a, b] = map(int, raw_input().split(" "))
    n = a+b
 
    ans = 1
    while(n >= 10):
        n /= 10
        ans += 1
 
    print ans

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
while True:
    a, b = map(int, raw_input().split())
    if a is None:
        break
    print len(a+b)

Submission status: Runtime Error

Solution code:
import sys

for x in stdin.sys.read().split():
    print len(str(x[0]+x[1])

Submission status: Runtime Error

Solution code:
import sys

for x in sys.stdin.read().split():
    print len(str(x[0]+x[1])

Submission status: Runtime Error

Solution code:
while 1:
  a,b = map(int, raw_input().split())
  print len(str(a + b)) + "\n"

Submission status: Runtime Error

Solution code:
while 1:
  a,b = map(int, raw_input().split())
  print len(str(a + b)) + "\n"

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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:
    (a, b) = map(int, raw_input().split())
    c = a + b
    i = 0
    while c != 0:
      c /= 10
      i += 1
    print i

  except:
    pass:

Submission status: Runtime Error

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

    return c

inp = input()
while (inp != ''):
    n, m = inp.split(' ')
    n = int(n)
    m = int(m)
    print(digits(n + m))
    inp = input()