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

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, 199):
        n = input().split()

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

        data_set.append(DataSet(a,b))

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

if __name__ == "__main__":
    main()

Python: # -*- coding: utf-8 -*-

import sys
import os

for s in sys.stdin:
    a, b = list(map(int, s.split()))
    c = a + b

    if c == 1:
        print(1)
        continue

    for i in range(7):
        left = 10 ** i
        right = 10 ** (i + 1)
        if left <= c < right:
            print(i + 1)
            break

Python: if __name__ == "__main__":
    for i in range(200):
        a,b = list(map(int,input().strip().split()))
        print(len(str(a+b)))

Python: #! /usr/bin/python3

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

Python: import sys
from math import log10, floor
print('\n'.join(map(str, [floor(log10(sum(map(int, ab.split())))) + 1 for ab in sys.stdin])))

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

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

Python: while True:
    try:
        line = input()
    except EOFError:
        break
    s = sum(map(int, line.split()))
    num = 0
    for c in str(s):
        if c.isdigit():
            num += 1
    print(num)

Python: import sys

def log10(num):
    log = 0
    while num > 0:
        log += 1
        num //= 10
    return log

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

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

Python: line = []
try:
    while True:
        a,b = input().split(" ")
        d = int(a) + int(b)
        list = [c for c in str(d)]
        line.append(len(list))
except EOFError:
    for e in range(0,len(line)):
        print(line[e])

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

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

Python: import math

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

Python: while True:
	try:
		N = map(int, input().split(' '))
		sums = N[0] + N[1]
		keta = list(str(sums))
		print(len(kata))
	except EOFError:
		break

Python: import sys
lines = sys.stdin.readlines()
for line in lines:
    line = line.split(" ")
    inp = []
    for i in line:
        inp.append(int(i))
    print (len(str(inp[0]+inp[1])))

Python: import math

lis=[]
n=0
while n < 200:
    nums = list(map(int, input().split()))
    print(nums)
    a=int(1.0+math.log(nums[0],10))+int(1.0+math.log(nums[1],10))
    lis.append(a)

for i in lis:
    print(i)

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)