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,math
for i in sys.stdin.readlines():
    if not i.strip():break
    a, b = map(int, i.split())
    print int(math.log10(a+b))+1

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#condig: UTF-8
 
while True:
    try:
        n = map(int, raw_input().split())
        s = len(str(n[0] + n[1]))
        print s
    except Exception:
        break

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from __future__ import absolute_import, print_function, unicode_literals
import sys

for line in sys.stdin:
    print(len(str(sum(int(n) for n in line.split()))))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
try:
 for a in iter(raw_input,0):print len(str(sum(map(int,a.split()))))
except:pass

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys,math
for line in sys.stdin:
    print reduce(lambda x,y: int(math.log10(x+y)+1), map(int, line.split()))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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, 8): 
        if (a + b) / (10 ** j) < 1:
            print j
            break

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
import sys

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
for line in sys.stdin:
    line = line.strip()
    print int(math.log10(int(line[:line.find(' ')]) + int(line[line.find(' ') + 1:])))+1

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# Digit Number

import sys

results = []

for line in sys.stdin:
	results.append(int(line.split()[0]) + int(line.split()[1]))

for result in results:
	print len(str(result))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    result = 0
    a, b = map(int, line.rstrip('\n').split(' '))
    x = a + b
    while x  > 0:
        result += 1
        x /= 10
    print result

Submission status: Accepted

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:
        try:
            print "%d" % dn(*get())
        except:
            break

Submission status: Accepted

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:
        try:
            print "%d" % dn(*get())
        except EOFError:
            break

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

Submission status: Accepted

Solution code:
x = []
try:
	while True:
		a, b = map(int, raw_input().split())
		x.append(len(list(str(a + b))))
except EOFError:
	for i in x:
		print(i)

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#coding: utf-8

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys

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: Accepted

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

    return c

while 1:
    try:
        inp = input()
    except EOFError:
        break
    else:
        n, m = inp.split(' ')
        n = int(n)
        m = int(m)
        print(digits(n + m))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

for line in open(0).readlines():
    a, b = map(int, line.split())
    c = a+b
    ans = +(c == 0)
    while c:
        ans += 1
        c //= 10
    print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for i in range(200):
    
    try:
        a,b=map(int,input().split())
        print(len(str(a+b)))
    except:
        pass

Submission status: Accepted

Solution code:
while 1:
    try:
        x,y = map(int, input().split())
    except EOFError:
        break
    count = 0
    sum = x+y
    while sum > 0:
        sum = sum // 10
        count += 1
    print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num_list = []
while True:
    try:
        num_list.append(input().split())
    except EOFError:
        break

for i in num_list:
    if i != []:
        ans = len(str(int(i[0]) + int(i[1])))
        print(ans)

Submission status: Accepted

Solution code:
import math
while True:
    try:
        lst = list(map(int, input().split()))
        a, b = lst[0], lst[1]
        c = str(a+b)
        print(len(c))

    except EOFError:
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
for x in sys.stdin:
	s = x.split()
	a,b = int(s[0]), int(s[1])
	print(len(str(a+b)))

Submission status: Accepted

Solution code:
listal=[]
while True:
    try:
        listal.append(input())
    except EOFError:
        break
tyon=[]
for i in listal:
    lista=i.split()
    tyon.append(len(str(int(lista[0])+int(lista[1]))))
for i in tyon:
    print(i)

Submission status: Accepted

Solution code:
import math

while 1:
  try:
    a,b=map(int, input().split())
    print(len(format(a+b)))

  except:
    break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
for line in open(0).readlines():
    a, b = map(int, line.split())
    c = a+b
    ans = +(c == 0)
    while c:
        ans += 1
        c //= 10
    print(ans)

Submission status: Accepted

Solution code:
line = []
try:
    while True:
        a,b = input().split(" ")
        d = int(a) + int(b)
        list = [c for c in str(d)]
        line.append(len(list))
except EOFError:
    for e in range(0,len(line)):
        print(line[e])

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())
        c = a + b
        print(len(str(c)))

    except EOFError:
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
try:
    while True:
        a,b= map(int, input().split())
        sum1=a+b
        sum1s=str(sum1)
        kata_sum1s=len(sum1s)
        keta=int(kata_sum1s)
        print(str(keta))
except EOFError:
    pass

Submission status: Accepted

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

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:
def solve():
    from sys import stdin
    input_lines = stdin
    
    from math import log10
    
    for line in input_lines:
        a, b = map(int, line.split())
        
        if (a == 0 and b == 0):
            break
        
        print(int(log10(a + b)) + 1)

solve()

Submission status: Accepted

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

Submission status: Accepted

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

except Exception as ex:
    pass

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while 1:
    try:print(len(str(sum(list(int(x) for x in input().split())))))
    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:
try:
    while True:
        a, b = map(int, input().split())
        print(len(str(a+b)))
except EOFError:
    pass

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
while 1:
    try:
        line = input()
        lul = line.split()
        #printlul)
        a = int(lul[0])+int(lul[1])
        print(len(str(a)))
    except:
        break

Submission status: Accepted

Solution code:
import sys

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

for a, b in array:
    digit = 0
    c = a + b
    while c > 0:
        c = int(c / 10)
        digit = digit + 1
    
    print(digit)

Submission status: Accepted

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

Submission status: Accepted

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

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
for e in sys.stdin:
    a, b = map(int, e.split())
    print(len(str(a+b)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
try:
    while True:
        a, b = [int(x) for x in input().split()]
        print(len(str(a+b)))
    pass

except EOFError:
    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:
k=[]
try:
  while True:
    k.append(list(map(int,input().split())))
except EOFError:
  pass
for x,y in k:
  print(len(str(x+y)))

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:
while 1:
    try:
        a, b = map(int, input().split())
        print(len(str(a+b)))

    except:
        break

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
ans = []

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

for a in ans:
  print(a)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
while True:
  try:
    a,b = list(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())
    except:
        break
    print(len(str(a+b)))

Submission status: Accepted

Solution code:
while True:#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:
import sys
for line in sys.stdin.readlines():
    a, b = list(map(int, line.split()))
    print(len(str(a+b)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
if __name__ == '__main__':

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while(1):
    try:
        a, b= (int(i) for i in input().split())
        print(len(str(eval('a+b'))))
    except:break

Submission status: Accepted

Solution code:
while True:
    try:
        s = [int(x) for x in input().split()]
    
        print(len(str(s[0]+s[1])))
        
    except:
        break

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

def digit(n):
	now = n
	cnt = 1
	while now / 10 != 0:
		cnt += 1
		now = now / 10
	return cnt

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def degit(num):
    count = 0
    while num > 0:
        num //= 10
        count += 1
    return count

a = []
b = []
count = 0

while True:
    try:
        buff = input().split()
        a.append(int(buff[0]))
        b.append(int(buff[1]))
        count += 1
    except:
        break

for i in range(count):
    print(degit(a[i]+b[i]))

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:
while True:
	try:
		a,b=list(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())
        a+=b
        print(len(str(a)))
    except:
        break

Submission status: Accepted

Solution code:
import sys
l=[[int(i) for i in l.split()] for l in sys.stdin]
for i in l:
    print(len(str(i[0]+i[1])))

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin.readlines():
    i = line.rstrip().split(' ')
    j = int(i[0]) + int(i[1])
    a = str(j)
    print(len(a))

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = (int(x) for x in input().strip().split(' '))
        sum = a + b
        digit = 0

        while sum >= 1 :
            sum = sum / 10
            digit += 1

        print(digit)

    except EOFError:
        break

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:
for i in range(1, 200):

    try:
        str1 = input()
        list = str1.split(" ")
        result = len(str(int(list[0]) + int(list[1])))
        print(result)
    except:
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

while True:
    try:
        data = list(map(int,input().split()))
        sum = data[0] + data[1]
        sum_size = int (math.log10(sum) + 1)
        print(sum_size)
    except:
        break;

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = [int(x) for x 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:
        exit(0)

Submission status: Accepted

Solution code:
try:
    while True:
        a,b=[int(i) for i in input().split(" ")]
        c=a+b
        S=0
        while c>0:
            S+=1
            c=int(c/10)
        print(S)
except EOFError:
    pass

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while True:
    try:
        a,b = input().split()
        a = int(a)
        b = int(b)
        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:
		n=list(map(int, input().split()))
	except EOFError:
		break
	a=n[0]+n[1]
	for i in range(0,10):
		if a/10**i<10:
			print(i+1)
			break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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:
ans = []

while(1):
    try:
        a, b = map(int, input().split())
    except:
        break

    s = str(a + b)
    cnt = len(s)
    ans.append(cnt)

for a in ans:
    print(a)

Submission status: Accepted

Solution code:
from sys import stdin
for a in stdin :
    b = a.strip().split()
    b = sum([int(i) for i in b])
    c = 1
    while int(b/10) > 0:
        b = int(b/10)
        c += 1
    print(c)

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = map(int,input().split())
        sum = a + b
        i = 0
        while i >= 0:
            c = 10**i
            if sum % c == sum:
                break
            else:
                i += 1
        print(i)
    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:
import sys

for line in sys.stdin:
    ar = line.split(" ")
    print(len(str(int(ar[0]) + int(ar[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(map(int, input().split(' '))))))
    except EOFError:
        break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def keta(num):
    counter = 0
    while(1):
        num = num/10
        counter += 1
        if(num<1):
            break
    return counter
    
while(1):
    try:
        a,b = map(int, input().split())
        num=a+b
        print(keta(num))
    except:
        break

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from math import log10, ceil
while True:
 try:
  a=[int(item) for item in input().split()]
  b=a[0]+a[1]
  print(len(str(b)))
 except EOFError:break

Submission status: Accepted

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