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

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

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

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

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

Python: while(True):
    x,y=input().split()
    if x=="EOFError":
        break
    k=int(x)+int(y)
    print(len(str(k)))

Python: for i in input():
    i.split()
    a = int(i[i][0])
    b = int(i[i][1])
    temp = a+b
    x = 0
    while temp // (10**x) > 0:
        x += 1
    print(x)

Python: #coding:utf-8

while True:
    try:
        i, n = map(int, raw_input(). split())
    except:
        break
    print(len(str(i + n)))

Python: nums = input().split(" ")
sum = int(nums[0]) + int(nums[1])
print(len(str(sum)))

Python: l = 0
l = input().split()
a = len(l[0])
b = len(l[1])
k=a+b
print(k)

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

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

Python: import sys

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

Python: l = 0
l = input().split()
a = int(l[0])
b = int(l[1])
k=str(a+b)
print(len(k))

Python: a, b = map(int, input().split())

c = a + b

digits = 0

while c != 0:
  c = c / 10
  digits += 1

print(digits)

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

Python: import sys

def main():
    """ ????????? """
    istr = sys.stdin.read()
    wi = istr.splitlines()
    for i in wi:
        a = list(map(int,i.split()))
        b = str(a[0] + a[1])
        print(len(b))

if __name__ == '__main__':
    main()

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

Python: #coding: utf-8

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

Python: # coding: utf-8
remaining_questions = True
while remaining_questions:
    try:
        value_a, value_b = map(int, input().split(" "))
        print(len(str(value_a + value_b)))
    except:
        remaining_questions = False

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

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

Python: import string
import sys
import math

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
ip_list = {}
for i in range(len(ip)):
    ip_list[i] = ip[i].strip("\n").split()

for i in range(len(ip)):
    ans = int(ip_list[i][0]) + int(ip_list[i][1])
    print( int(math.log10(ans)+1) )

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

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

Python: import math

class DataSet():
    def __init__(self,a,b):
        self.a = a
        self.b = b

    def add_size(self):
        ans = self.a+self.b
        return int(math.log10(ans)+1)

def main():
    data_set = []

    for i in range(0, 200):
        n = input().split()

        a = int(n[0])
        b = int(n[1])

        data_set.append(DataSet(a,b))

    for i in range(0, 200):
        ans = data_set[i].add_size()
        print(ans)

if __name__ == "__main__":
    main()

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

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

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

Python: import math
import sys

ab = []
for line in sys.stdin:
    ab.append(list(map(int, input().split())))


for line in ab:
    a, b = line[0], line[1]
    add_ans = int(a + b)
    print(len(str(add_ans)))

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

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

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

Python: import os
for line in sys.stdin:
        s=sum([int(num) for num in line.split(' ')])
        print(len(str(s)))

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

Python: #!/usr/bin/env python
# -*- coding: utf-8 -*-

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

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

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

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

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

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

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

Python: # AOJ 0002 Digit Number
# Python3 2018.6.7 bal4u

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

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

Python: import sys
for line in sys.stdin:
        s=sum([int(num) for num in line.split(' ')])
        print(len(str(s)))