Go: package main

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

var (
	sc = bufio.NewScanner(os.Stdin)
)

func main() {
	for sc.Scan() {
		chunks := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

Python: def sum_of_num(num_list):
    return sum(num_list)

def calculate_digit_num(num):
    z = num / 10
    if z == 0:
        return 1
    else:
        return 1 + calculate_digit_num(z)

while True:
    try:
        num_list = raw_input().split(' ')
        summation = sum_of_num(int(num_list))
        calculate_digit_sum(summation)
    except:
        break

Python: while True:
    a = int(input())
    b = int(input())
    print(len(str(a + b)))

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

Python: res=[]

while 1:
    try:
        s=input()
        a,b = [int(x) for x in s.split()]
        res.append(a+b)
    except:
        for n in res:
            print(len(str(n)))
        break

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

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

Python: # coding: utf-8
import fileinput
import math

reslt = []

for line in fileinput.input():
        tokens = list(map(int, line.strip().split()))
        wa = tokens[0], tokens[1]
        keta = int(math.log10(wa) + 1)
        result.append(keta)

for i in range(len(result)):
    print[i]

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

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

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

        print(len(c))
    except:
        break

Python: while True:
    line = input()
    if not line:
        break
    a, b = map(int, line.split())
    print(a + b)

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 = map(int, line.split())
    print(len(str(a + b)))

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

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

Python: import sys
 
su = 0
for line in sys.stdin:
    for x in line.split():
        su += int(x)
    su = str(su)
    size = len(su)
    print(size)
    su = 0

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: for i in range(1, 200):

    try:
        str1 = input()
        list = str1.split(" ")
        result = len(str(int(list[0]) + int(list[1])))
        print(result)
    except:
        break

Python: import math

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

Python: while 1:
    try:
        x,y=input().split()
        k=int(x)+int(y)
        print(len(str(k)))
    except EOFError:
        break

Python: import sys
import math

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

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

Python: import sys

while True:
    print(len(str(abs(sum(map(int, sys.stdin.readline().rstrip().split(' ')))))))

Python: import math
for i in range(3):
	x,y=map(int,input().split())
	print(int(math.log10(x+y))+1)

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

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

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

Python: while True:
    try:
        input_line = input()
        if input_line == '':
            break
        else:
            print(len(str(sum(map(int, input_line.split())))))
    except EOFError:
        break

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

Python: res=[]

while True:
    s=input()
    if s:
        a,b = [int(x) for x in s.split()]
        res.append(a+b)
    else:
        break

for n in res:
    print(len(str(n)))

Python: from math import log10, ceil
while True:
 try:
  a=[int(item) for item in input().split()]
  b=a[0]+a[1]
  print(len(str(b)))
 except EOFError:break

Python: import math
a, b = map(int, input().split())
ans = a + b
print(int(math.log10(ans)) + 1)

Python: while True:
    try:
        a,b = map(int,input().split())
    except:
        exit()

    print(len(str(a+b)))

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

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

Python: import sys

l = sys.stdin.readlines()
for i in l:
    x,y = map(int,i.split())
    print(len(str(x+y)))

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

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

def main():
    nums = input().split(" ")
    sum = int(nums[0]) + int(nums[1])
    print(len(str(sum)))

if __name__ == '__main__':
    main()

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

Python: import sys

nums = []

for line in sys.stdin:
    nums.append(line.rstrip())


for i in range(len(nums)):
    int_a = int(nums[i].split(" ")[0])
    int_b = int(nums[i].split(" ")[1])
    
    print(len(str(int_a+int_b)))

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

Python: # AOJ 0002 Digit Number
# Python3 2018.6.7 bal4u

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

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

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

Python: import math
while 1:
    try:
        print(int(math.log10(sum(map(int, input().split())))+1))
    except:
        break

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

Python: import math
import sys

ab = []
for line in sys.stdin:
    ab.append(line)


for x in ab:
    a, b = x.split(" ")
    add_ans = int(a + b)
    print(len(str(add_ans)))

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

for i in range(len(a)):
    print(a[i])

Python: import sys,math

inputs = sys.stdin.readlines()
inputs = list(map(lambda x:list(map(int,x.split())),inputs))

for n in inputs:
	print(math.floor(math.log10(n[0]*n[1]))+1)