Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	"unicode/utf8"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var strs []string
	var a, b, sum int64
	var digits int
	for scanner.Scan() {
		strs = strings.Split(scanner.Text(), " ")
		a, _ = strconv.ParseInt(strs[0], 10, 64)
		b, _ = strconv.ParseInt(strs[1], 10, 64)

		sum = a + b
		// goでlen(string)はbyte数が返る
		digits = utf8.RuneCountInString(strconv.FormatInt(sum, 10))

		fmt.Printf("%d\n", digits)
	}
}

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 = []
    ds_max = 200

    for i in range(0, ds_max):
        n = input().split()

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

        data_set.append(DataSet(a,b))

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

if __name__ == "__main__":
    main()

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

Python: while True:
    try:
        line = input().split(" ")
        a = int(line[0])
        b = int(line[1])
        print(a+b)
    except:
        break

Python: import sys
while(True):
    try:
        a,b=[int(i) for i in input().split()]
        print(len(str(a+b)))
    except:
        sys.exit()

Python: import sys
for e in sys.stdin:
 print(len(str(sum(map(int,e.split())))))

Python: import sys
import math

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

Python: import sys
import math

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

Python: import sys

data = []
for i in sys.stdin:
    data.append(list(map(int, i.split())))

for j in range(len(data)):
    print(len(str(data[j][0] + data[j][1])))

Python: # coding: utf-8
# Here your code !

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

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

Python: str = input()
l = []
while str != "0 0":
    l.append(str)
    str = input()

for i in range(len(l)):
    numl = l[i].split(' ')
    a = int(numl[0])
    b = int(numl[1])
    sum = a + b
    digitstr = "{0}".format(sum)
    print(len(digitstr))

Python: 
# coding: utf-8
# Here your code !

import sys
import math

list = ["2","3"]
r = sys.stdin.readlines()

n = [[int(i) for i in (j.split())] for j in r]
#e = [[int(i) for i in input().split()] for i in range(n)] 

for j in n:
    a = sum(j)
    d = int(math.log10(a)) + 1
    print(d)

Python: try:
    while True:
        a, b = [int(x) for x in input().strip().split(' ')]
        print(len(list(str(a+b))))
except EOFError:
    pass

Python: while 1:
    try:
        x,y = map(int, input().split())
    except EOFError:
        break
    count = 0
    sum = x+y
    while sum > 0:
        sum = sum // 10
        count += 1
    print(count)

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

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

Python: import sys
c=[len(str(sum(map(int,line.split())))) for line in sys.stdin]
[print(i) for i in c]

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

Python: flag = True
i = 0
inNums = []
while flag:
    inNums.append(raw_input().strip().split())
    if inNums[-1] == []:
        flag = False
        
for i in range(len(inNums)-1):
    a = int(inNums[i][0])
    b = int(inNums[i][1])
    temp = a+b
    x = 0
    while temp // (10**x) > 0:
        x += 1
    print(x)

Python: while True:
    try:
        a, b = (int(x) for x in input().split())
        c = a + b
        print(len(str(c)))
    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: #!/usr/bin/env python
# -*- coding: utf-8 -*-

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

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

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

Python: import sys
for e in sys.stdin.readlines():
 print(len(str(sum(map(int,e.split())))))

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

Python: a, b = map(int, input().split())
c=int(a+b)
count=0
while (c/10 != 0 ):
    c=int(c/10)
    count=count+1
print(count)

Python: # coding:utf-8

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

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

Python: import sys

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

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

Python: while 1:
    try:print(len(str(sum(list(int(x) for x in input().split())))))
    except:break

Python: import math

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

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

Python: l = map(int, raw_input().split())
l1 = [int(i) for i in l]
sum = (l1[0] + l1[1])
print(int(math.log10(sum) + 1))

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

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

Python: import math

for n in range(200):
    nums = list(map(int, input().split()))
    a=int(1.0+math.log(nums[0],10))+int(1.0+math.log(nums[1],10))
    print(a)

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

Python: import sys,math
for l in sys.stdin:
    print(math.floor(math.log(sum(map(int,l.split())),10)+1))

Python: import sys
import math

for line in sys.stdin:
    l = line.split()
    digit = int(math.log10(int(l[0]) + int(l[1]))) + 1
    print(digit)

Python: import sys
try:
    while True:
        a,b= map(int, input().split())
        sum1=a+b
        sum1s=str(sum1)
        kata_sum1s=len(sum1s)
        keta=int(kata_sum1s)
        print(str(keta))
except EOFError:
    pass

Python: while 1:
    i = input()
    if not i:
        break

    print(len(str(sum(map(int, i.split())))))

Python: while 1:
    try:
        sum = input()
        sum_list = sum.split()
        print(len(str(int(sum_list[0]) + int(sum_list[1]))))
    except EOFError:
        break

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

Python: import sys
import math

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

Python: import itertools
import operator

dataset = []
while True:
    try:
        dataset.append(input())
    except EOFError:
        break

for item in (sum(int(y) for y in x.split()) for x in dataset):
    print(len(str(item)))

Python: import math
import sys

for line in sys.stdin:
    words=line.strip().split(" ")
    a=int(words[0])
    b=int(words[1])
    c=a+b
    if c!=0:
        print(int(1.0000001+math.log(c,10)))
    else:
        print(1)