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: from sys import stdin
for a in stdin :
    b = a.strip().split()
    b = sum([int(i) for i in b])
    c = 1
    while int(b/10) > 0:
        b = int(b/10)
        c += 1
    print(c)

Python: import sys
a = []
for line in sys.stdin:
    a.append(line)
for i in a:
    sum = i[0] + i[1]
    print(len(str(sum)))

Python: import sys
import math

while True:
    line = sys.stdin.readline()
    if not line:
        break
    token = list(map(int, line.strip().split()))
    print(int(math.log10(token[0] + token[1]) + 1))

Python: import sys 
for line in sys.stdin:
  a, b = line.split()
  a = int(a)
  b = int(b)
  c = a + b
  cnt = 0
  while c > 0:
    c //= 10
    cnt += 1
  print(cnt)

Python: import math
x,y=[int(i) for i in input().split()]
a = int (math.log10(x + y) + 1)
print(a)

Python: while(1):
    a,b=input().strip().split()
    if a<0 or b<0:
        break
    a=int(a)
    b=int(b)
    sum = a+b
    sum = str(sum)
    print(len(sum))

Python: a = int(input())
b = int(input())
c = a+b
d = 1
while(int(c/10) != 0):
	d += 1
	c /= 10
print(d)

Python: import math
a,b = [int(x) for x in input().split()]
x = a + b
print(int(math.log10(x))+1)

Python: try:
    s=[]
    while True:
        t = input()
        s.append(t)
except EOFError:
    for i in range(len(s)):
        print(len(str(int(s[i].split(' ')[0])+int(s[i].split(' ')[1]))))

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

Python: while True:
    a,b=map(int,input().split())
    c=a+b
    ans=0
    if c>=0 and c<=9:
        ans=1
    if c>=10 and c<=99:
        ans=2
    if c>=100 and c<=999:
        ans=3
    if c>=1000 and c<=9999:
        ans=4
    if c>=10000 and c<=99999:
        ans=5
    if c>=100000 and c<=999999:
        ans=6
    if c>=1000000 and c<=9999999:
        ans=7
    print(ans)

Python: import sys

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

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

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

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

Python: while True:
    try:a,b=map(int,input().split())
    except:break
    c=a+b
    ans=0

    while c>9:
        c=c//10
        ans+=1
    ans+=1
    print(ans)

Python: from math import log10 as log
from sys import stdin
A = []
for po in stdin:
    S = list(map(int,po.split()))
    A.append(int(log(S[0]+S[1])+1))
for i in A:
    print(i)

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

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

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

    except:
        break

Python: from __future__ import absolute_import, print_function, unicode_literals
import sys

for line in sys.stdin:
    print(len(str(sum(int(n) for n in line.split()))))

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

import sys

for line in sys.stdin:
    a,b = map(int,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 = int(input())
        b = int(input())
        print(len(str(a + b)))
    except EOFError:
        break

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

Python: import numpy.math
while True:
    line = input().split(" ")
    if(len(line) != 2):
        exit()
    a = int(line[0])
    b = int(line[1])
    print(int(math.log10(a+b))+1)

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

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

def get_input():
    
    while True:
        try:
            yield "".join(input())
        except EOFError:
            break
                     
if __name__=="__main__":
    array = list(get_input())
    for i in range(len(array)):
        
        temp = array[i].split()
        
        a = int(temp[0])
        b = int(temp[1])
                        
        ans = a + b
        
        print(len(str(ans)))

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

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

Python: import math
while True:
    try:
        l = map(int, raw_input().split())
        l1 = [int(i) for i in l]
        sum = (l1[0] + l1[1])
        print(int(math.log10(sum) + 1))
    except EOFError:
        break

Python: def main():
    def inputs():
        li = []
        string = input()
        count = 0
        while count < 201 and string != "":
            li.append(string)
            string = input()
            count += 1
        return li

    li = inputs()
    for x in li:
        a = x.split(" ")
        print(int(a[0]) + int(a[1]))
    return None

if __name__ == '__main__':
    main()

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

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

Python: import fileinput
for line in fileinput.input():
    a, b = map(int, line.split())
    print(len(str(a + b)))

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

Python: ans_list=[]
while True:
	try:
		k=list(map(int,input().split(" ")))
		ans_list.append(k[0]+k[1])
	except:
		for i in ans_list:
			print(len(str(i)))
		break

Python: ans = []

while(1):
    try:
        a, b = map(int, input().split())
    except:
        break

    s = str(a + b)
    cnt = len(s)
    ans.append(cnt)

for a in ans:
    print(a)

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

Python: #Digit Number

while True:
    try:
        i, n = input(). split()
        m = str(int(i) + int(n))
        print(len(m))
    except:
        break

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

Python: while True:
    inNums = input().strip().split()
    a = int(inNums[0])
    b = int(inNums[1])
    temp = a+b
    x = 0
    digitNum = 0
    while temp // 10**x > 0:
        digitNum = x
        print(x)
    
    if inNums == None:
        break
    break

Python: import math
import sys

ab = []
for line in sys.stdin:
    ab.append(list(map(int, input().split())))


for x in ab:
    a, b = x[0], x[1]
    add_ans = int(a + b)
    print(len(str(add_ans)))

Python: import sys

for line in sys.stdin:
    l = line.replace('\n', '')
    a, b = l.split()
    a = int(a)
    b = int(b)
    print(len(str(a+b)))