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
input_lines=sys.stdin.readlines()
for line in input_lines:
 x=[int(i) for i in line]
 print(len(str(x[0]+x[1])))

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

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)

Python: import math
while True:
	a, b = map(int, input().split())
	if(a==0 and b==0):
		break
	print(int(math.log10(a + b)) + 1)

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

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

    for i in data:
        print(i)

if __name__ == "__main__":
    main()

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

Python: import math
nums = input().split()
print(math.ceil(math.log10(int(nums[0])*int(nums[1]))))

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

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

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

Python: __author__= 'CIPHER'

str = input()
numList = str.split(' ')
numList = [ int(x) for x in numList]
#print(numList)
result = 1
length = 0
for x in numList:
    result *= x
    length += x

print(length)

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

Python: for i in input():
    i.sprit()
    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: while 1:
    try:
        a, b = map(int, input().split())
        ans = 1
        while (a+b)/(10**ans) >= 1:
            ans += 1
        print(str(ans))
    except EOFError:
        break

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

Python: for i in range(3):
    a, b = list(map(int, input().split()))
    
    print(len(str(a + b)))

Python: import sys

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

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

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))+1)

Python: rig=[int(i) for i in input().split(" ")]
while True:
    ke=rig[0]+rig[1]
    ans=1
    count=10
    while True:
        if ke<count:
            print(ans)
            break
        else:
            ans+=1
            count=count*10
    try:rig=[int(i) for i in input().split(" ")]
    except:break

Python: import sys
for line in sys.stdin:
	a = input()
	b = input()
	c = int(a)+int(b)
	d = 1
	while(int(c/10) != 0):
		d += 1
		c = int(c/10)
	print(d)

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

Python: # coding: utf-8
import sys

N = sys.stdin.read().splitlines()

for n in N:
    i, j = [int(i) for i in n.split()]
    print(len(str(i+j)))

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

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

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

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

Python: import sys

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

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

Python: #coding:UTF-8

a=int(input())
b=int(input())

a+=b;
b=1
for num in range(1,8):
    b*=10
    if a<b:
        print(num)
        break

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

Python: import sys

def keta(x):
    return len(str(x))

while True:
    t=input()
    if t=="":
        sys.exit()
    a,b=[int(i) for i in t.split(" ")]
    print(keta(a+b))

Python: if __name__ == '__main__':

    nums = []

    for line in sys.stdin:
        if line == "\n":
            break
        else :
            nums.append([int(item) for item in input().split(" ")])

    for n in nums:
        sum = n[0] + n[1]
        print(len(str(sum)))

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

Python: import sys,math

inputs = list()

for n in sys.stdin:
	inputs.append(list(map(int,n.split())))

for n in inputs:
	print(math.floor(math.log10(n[0]*n[1]))+1)

Python: l = list(map(int, input().split()))

while(l != None):
    print(int(len(str(l[0]+l[1]))))
    l = list(map(int, input().split()))

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

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

while True:
	try:
		solve()
	except:
		break

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

Python: import sys

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

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

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

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

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

Python: while 1:
    sum = input()
    if len(sum)<1:
        break
    else:
        sum_list = sum.split(" ")
        print(len(str(int(sum_list[0]) + int(sum_list[1]))))

Python: k=[]
try:
  while True:
    k.append(list(map(int,input().split())))
except EOFError:
  pass
for x,y in k:
  print(len(str(x+y)))