Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

func sliceAtoi(sa []string) ([]int, error) {
	si := make([]int, 0, len(sa))
	for _, a := range sa {
		i, err := strconv.Atoi(a)
		if err != nil {
			return si, err
		}
		si = append(si, i)
	}
	return si, nil
}

func getDigits(ary []int) (digits int) {
	sum := 0
	for _, v := range ary {
		sum += v
	}

	for sum != 0 {
		sum /= 10
		digits++
	}
	return
}

func getsTwoNumAsArray() (nums [][]int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}

		ary, _ := sliceAtoi(strings.Split(str, " "))
		nums = append(nums, ary)
	}

	return
}

func main() {
	ary := getsTwoNumAsArray()

	for _, v := range ary {
		fmt.Println(getDigits(v))
	}
}

Python: # coding: utf-8

import sys

def digit_check(n):
    digit = 1
    
    while int(n/(10**digit)) != 0:
        digit += 1

    return digit
        
def main():
    for line in sys.stdin:
        ls = list(map(int, line.split(' ')))
        print(digit_check(ls[0]+ls[1]))

if __name__ == '__main__':
    main()

Python: import sys
for line in sys.stdin.readlines():
    a, b = map(int,line.split())
    c=int(a+b)
    count=0
    while (c/10 != 0 ):
        c=int(c/10)
        count=count+1
    print(count)

Python: num = int(input()) + int(input())
print(len(str(num)))

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

Python: import sys
a=[map(int,i.split()) for i in sys.stdin]
[print(len(str(b+c))) for b,c in a]

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

Python: import math

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

Python: import math
while t == 0:	
		x,y=[int(i) for i in input().split()]
		a = int (math.log10(x + y) + 1)
		print(a)

Python: 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)))

Python: if __name__ == "__main__":
    for i in range(200):
        a = list(map(int,input().strip().split()))
        if len(a) == 0 :break
        absum = a[0] + a[1]
        for j in range(1,8):
            if absum < 10:
                print(1)
                break
            elif int(absum/pow(10,j)) == 1:
                print(j+1)
                break

Python: 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)

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

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

Python: 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)))

Python: 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,10))
    if b==0:
        b=1
    else:
        b = int(1.0+math.log(b,10))
    print(a+b)

Python: import sys
import math

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

Python: # -*- 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))

Python: import sys
import fileinput

for i in fileinput.input():
    a,b = i.split()
    a,b = int(a),int(b)
    print(a+b)

Python: import sys
from math import log10

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

Python: try:
    s=[input() for x in range(200)]
    for i in range(len(s)):
        print(len(str(int(s[i].split(' ')[0])+int(s[i].split(' ')[1]))))
except EOFError:
    pass

Python: import sys

for line in sys.stdin:
    a, b = list(map(int, line.split()))

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

Python: # -*-coding:utf-8

import fileinput

if __name__ == '__main__':
    for line in fileinput.input():
        digit = 0
        tokens = list(map(int, line.strip().split()))
        a, b = tokens[0], tokens[1]
        num = a + b

        print(len(str(num)))

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

Python: import sys

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

Python: 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)

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

Python: 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)))

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

Python: try:
    while 1:
        print(len(str(sum((input().split())))))
except Exception:
    pass

Python: 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 IndexError:
            #EOF
            break

        for i in data:
            print(i)

if __name__ == "__main__":
    main()

Python: 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)

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

Python: while True:
    try:
        a,b = map(int, input().split())
        d = 0
        s = sum([a,b])
        while (s):
            s //= 10
            d += 1
        print(d)
    except EOFError: break

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

Python: import sys
def main():
    for line in sys.stdin:
        A = list(map(int,line.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()

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

Python: 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)

Python: num = int(input()) + int(input())
print(len(str(num)))