Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		i := scanner.Text()
		var total int
		inputNum := strings.Fields(i)
		for _, v := range inputNum {
			num, err := strconv.Atoi(v)
			if err != nil {
				break
			}
			total += num
		}
		fmt.Println(DigitCount(strconv.Itoa(total)))
	}
}

func DigitCount(str string) int {
	return len(str)
}

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

Python: import math
import sys

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

Python: import math

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

  except:
    break

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

Python: import math
import sys

for line in sys.stdin:
    words=line.strip().split(" ")
    a=int(words[0])
    b=int(words[1])

    if a==0:
        a=1
    else:
        a = int(1.0+math.log(a[0],10))
    if b==0:
        b=1
    else:
        b = int(1.0+math.log(b[1],10))
    print(a+b)

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

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

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

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

Python: while(True):
    try:
        a = map(int, raw_input().split())
        b = str(a[0] + a[1])
        print(len(b))
    except Exception:
        break

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

Python: import math
for _ in range(200):
    a, b = list(map(int, input().split()))
    add_ans = a + b
    print(int(math.log10(add_ans)) + 1)

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

Python: import sys
from math import log10

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

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

# Volume0 - 0002 (http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002)

while 1:
    try:
        i = input()
        l = i.split(" ")
        s = int(l[0]) + int(l[1])
        ans = len(str(s))
        print(ans)
    except:
        break

Python: while True:
    try:
        s = [int(x) for x in input().split()]
    
        print(len(str(s[0]+s[1])))
        
    except:
        break

Python: # -*- coding:utf-8 -*-
 
def main():
    while True:
        try:
            IN=input()
            if IN=="":
                raise EOFError
            else:
                val=IN.split(" ")
                a=int(val[0])+int(val[1])

                i=1
                flag=True
                while flag:
                    a=a/10
                    if a<1:
                        flag=False
                    else:
                        i+=1

            print(i)
        except EOFError:
            break
  
if __name__ == '__main__':
    main()

Python: import math

def get_input():
    while True:
        try:
            yield ''.join(input())
        except EOFError:
            break

line = list(get_input())
for l in range(len(line)):
    a,b = [int(i) for i in line[l].split()]
    S = a + b
    keta = 0
    while S > 0:
        S = math.floor(S / 10)
        keta = keta + 1
    print(keta)

Python: import sys
try:
    while True:
        a, b = list(map(int, input().split()))
        c = str(a + b)
        print(len(c))
except Exception:
    sys.exit()

Python: flag = True
i = 0
inNums = []
while flag:
    input = raw_input().strip().split()
    inNums.append(input)
    if input == []:
        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: import sys

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

Python: #a = []
while (True):
    b = list(map(int, input().split(" ")))
    #print(b)
    if(b == ['']): break
    #a.append(b)
    c = 1
    d = b[0] + b[1]
    while(d >= 10):
        c += 1
        d = d / 10
    print(c)

Python: import math
while True:
    try:

        num = input().split(" ")
        num1 = int(num[0])
        num2 = int(num[1])
        sum_number = num[0] + num[1]
        ans = int(math.log10(sum_number) + 1)
        print(ans)

    except:
        break

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

Python: data_set_count = 3
for _ in range(data_set_count):
    data_set = list(map(int, input().split()))
    data = data_set[0] + data_set[1]
    print(len(str(data)))

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

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

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

Python: import sys;

for line in sys.stdin:
	a = [int(num) for num in line.split()];
	sum = a[0] + a[1];
	count = 0;
	while sum > 0:
		count += 1;
		sum //= 10;
	print(count);

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

Python: import sys

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

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

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

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

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

Python: def main():
    def inputs():
        li = []
        count = 0
        try:
            while count < 200:
                li.append(input())
                count += 1
        except EOFError:
            return li
        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: import sys
l = []
for line in sys.stdin:
    l.append(line)

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: while 1:
    try:
        print(len(str(sum(map(int,input().split())))))
    except: break

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

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

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

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

Python: import math

while True:
    try:
        data = list(map(int,input().split()))
        sum = data[0] + data[1]
        sum_size = int (math.log10(sum) + 1)
        print(sum_size)
    except:
        break;