Go: package main

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

func main() {
        sc := bufio.NewScanner(os.Stdin)

        for sc.Scan() {
                digits := 0
                num := 0
                for _, s := range strings.Fields(sc.Text()) {
                        i, _ := strconv.Atoi(s)
                        num += i
                }
                for num > 0 {
                        digits += 1
                        num /= 10
                }
                fmt.Printf("%d\n", digits)
        }
}

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

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