Go: package main

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

func main() {
        sc := bufio.NewScanner(os.Stdin)

        for sc.Scan() {
                digits := 0
                num := 0
                for _, s := range strings.Fields(sc.Text()) {
                        i, _ := strconv.Atoi(s)
                        num += i
                }
                for num > 0 {
                        digits += 1
                        num /= 10
                }
                fmt.Printf("%d\n", digits)
        }
}

Python: a = raw_input() ;l = a.split(); print(len(str(l[0]))) if (len(l) != 2) else (len(str((int(l[0]) + int(l[1]))))) if(int(l[0]) + int(l[1]) > 0) else (len(str((int(l[0]) + int(l[1])))) - 1)

Python: lst = []
for i in range(200):
    try:
        lst.append(input())
    except EOFError:
        break

print(*[len(str(sum([int(num) for num in string.split(' ')]))) for string in lst], sep='\n')

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

import math
for n in res:
    print(int(math.log(n,10))+1)

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

Python: data_set = list(map(int, input().split()))
data = data_set[0] + data_set[1]
print(len(str(data)))

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

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

Python: import math
import sys

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

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

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

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

Python: # usr/bin/python
# coding: utf-8
################################################################################
# Digit Number
# Write a program which computes the digit number of sum of two integers a and b.
#
# Input
# There are several test cases. Each test case consists of two non-negative integers a and b which are separeted by a space in a line. The input terminates with EOF.
#
# Constraints
# 0 ??? a, b ??? 1,000,000
# The number of datasets ??? 200
# Output
# Print the number of digits of a + b for each data set.
#
# Sample Input
# 5 7
# 1 99
# 1000 999
# Output for the Sample Input
# 2
# 3
# 4
#
################################################################################

import math
import fileinput

if __name__ == "__main__":
    for line in fileinput.input():
        a = int(line.split(" ")[0])
        b = int(line.split(" ")[1])
        data_size = int(math.log10(a+b) + 1)
        print(data_size)
    exit(0)

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

Python: import sys
from operator import add
from math import log10

for i in sys.stdin:
    print(int(log10(add(*list(map(int, i.split()))))) + 1)

Python: i = 0
while i < 200:
    sum = input()
    if len(sum)<1:
        break
    else:
        sum_list = sum.split(" ")
        print(len(str(int(sum_list[0]) + int(sum_list[1]))))
    i += 1

Python: # Compatible with Python3
# -*- coding: utf-8 -*-
from math import log10
print(int(log10(eval(input().replace(" ", "+"))) + 1))

Python: #!/usr/bin/env python3
import math
import sys

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

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

Python: str = input()
l = []
while True:
    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: import math

def main():
    data = []
    while 1:
        try:
            n = input().split()
            a = int(n[0])
            b = int(n[1])
            ans = int(math.log10(a+b)+1)
            data.append(ans)
        except IndexError:
            #EOF
            break
            
    for i in data:
        print(i)

if __name__ == "__main__":
    main()

Python: while True:
	try:
		value = input().split(" ")
		result = str(int(value[0]) + int(value[1]))
		print(len(result))
	except EOFError:
		break

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

Python: [print(len(str(sum(map(int, input().split()))))) for _ in range(1)]

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

while True:
    try:
        solve()
    except:
        break

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

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

Python: a, b = (int(x) for x in input().split())
print(len(str(a+b)))

Python: # coding: utf-8

import sys

def main():
    for line in sys.stdin:
        ls = list(map(int, line.split(' ')))
        print(ls[0]+ls[1])

if __name__ == '__main__':
    main()

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())
        sum = a + b
        i = 0
        while i >= 0:
            c = 10**i
            if sum % c == sum:
                break
            else:
                i += 1
        print(i)
    except EOFError:
        break

Python: import math

while True:
    try:
        line = input().split(" ")
        print(int(math.log10(int(line[0])+int(line[1])))+1)
    except:
        exit()

Python: import sys
import math

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

Python: import math
while True:
    try:

        num1, num2 = map(int, input().split())
        sum_number = num1 + num2

        ans = int(math.log10(sum_number) + 1)
        print(ans)

    except:
        break

Python: while True:
    try:
        list = input().split()
        a = int(list[0])
        b = int(list[1])
        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 True:
    try:
        a,b = map(int,input().split())
        print (len(str(a+b)))
    except EOFError:
        break

Python: import math
nums = input().split()
print(math.ceil(math.log10(int(nums[0])*int(nums[1]))))

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

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