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

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)