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: import sys
# l = sys.stdin.readline()
l = sys.stdin.readlines()
for line in l:
    data = map(int, line.split(" "))
    print(len(str(data[0] + data[1])))

Python: import sys
 
[print(len(str(y[0] + y[1]))) for y in [[int(z) for z in x.split()] for x in sys.stdin]]

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

Python: def main():
	a, b = map(int, input().split())
	c = a + b
	digits = 1
	while c // 10 != 0:
		c = c // 10
		digits += 1

	print(digits)

if __name__ == '__main__':
	main()

Python: from math import log10, floor
while True:
    try:
        w = input()
    except EOFError:
        break
    w = list(map(int, w.split()))
    print(floor(log10(sum(w))+1))

Python: import sys

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

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

Python: import sys
for line in sys.stdin:
    nums = list(map(int,line.split()))
    print(len(str(sum(nums))))

Python: import sys,math
for l in sys.stdin:
    print(math.floor(math.log(sum(map(int,l.split())),10)+1))

Python: import sys
for line in sys.stdin:
	l=0
	for l in range(len(line)):
		if(line[l] == ' '):
			p = l
			break
	a = line[0:p]
	b = line[p+1:]
	c = int(a)+int(b)
	d = 1
	while(int(c/10) != 0):
		d += 1
		c = int(c/10)
	print(d)

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

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

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

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

Python: res=[]
s=True
while s:
    s=input()
    if s:
        a,b = [int(x) for x in s.split()]
        res.append(a+b)

for n in res:
    print(len(str(n))+1)

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

Python: while True:
    try:
        line = input()
    except EOFError:
        break
    print(len(list(filter(lambda c: c in '1234567890', line))))

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

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

Python: values = []
x, y = [int(x) for x in input().split()]
digit = 0
sum = x + y
while sum >= 1:
    sum //= 10
    digit += 1
print(digit)

Python: 
A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except ValueError:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))

Python: import fileinput

if __name__ == "__main__":
    for line in fileinput.input():
        v = line.split(" ")
        print(len(str(sum([int(i) for i in v]))))

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

Python: import math

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

if __name__ == "__main__":
    main()

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

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

Python: import sys

while True:
    data = sys.stdin.readline().strip()
    if data is None or data == '':
        break

    data = data.split(' ')
    num1 = int(data[0])
    num2 = int(data[1])
    sum = num1 + num2
    print(len(str(sum)))

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

Python: 
A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except ValueError:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))

Python: while True:
    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: import math
x = map(raw_input().split(' '))
print(int(math.log10(x[0]+x[1]))+1)

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

Python: # coding=utf-8
import math


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

Python: x,y=[int(i) for i in input().split()]

Python: import math

while True:
    try:
        line = input().split(" ")
        a = int(line[0])
        b = int(line[1])
        print(int(math.log10(a+b))+1)
    except:
        break

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

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

Python: try:
    while True:
        print(len(str(sum(map(int, input().split())))))
except:
    pass