Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int
		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}
		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

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

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

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

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

import sys

for line in sys.stdin:
	a,b = line.split(' ')
	value = int(a) + int(b)
	print( len('{}'.format(value)) )

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

Python: print(len(str(sum(map(int, input().split())))))

Python: import sys
for e in sys.stdin.readlines():
 print(len(str(eval('+'.join(e.split())))))

Python: import math
a=int(input())
b=int(input())
print(math.ceil(math.log10(a*b)))

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

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

if __name__ == "__main__":
    main()

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

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

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

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

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

Python: import sys

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

Python: import math

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

print(str(int(math.log10(a+b)+1)))

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

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

Python: import sys

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

        c = a + b

        if c == 0:
            print(1)
        else:
            ans = 0

            while c > 0:
                ans += 1
                c //= 10

            print(ans)

if __name__ == '__main__':
    solve()

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

Python: import sys

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

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

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

Python: import math
print(int(math.log10(int(input()) + 1)))

Python: import sys
[print(len(str(sum([int(y) for y 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: import sys
values = []
for line in sys.stdin:
    values.append([int(x) for x in line.split()])
digit = 0
for x, y in values:
    sum = x + y; digit = 0
    while sum >= 1:
        sum //= 10
        digit += 1
    print(digit)

Python: for var in range(1,2001):
    a,b=map(int,input().split())
    c=a+b
    c=str(c)
    print(len(c))

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

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