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

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

Python: import math

def main():
    while 1:
        try:
            n = input().split()
            a = int(n[0])
            b = int(n[1])
            ans = int(math.log10(a+b)+1)
            print(ans)
        except IndexError:
            break

if __name__ == "__main__":
    main()

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.00001+math.log(c,10)))
    else:
        print(1)

Python: def main():
	import sys

	for line in sys.stdin:
		a, b = map(int, line.split())
		c = a + b
		digits = 1
		while c // 10 != 0:
			c = c // 10
			digits += 1

		print(digits)

if __name__ == '__main__':
	main()

Python: import sys

for i in sys.stdin:
    a,b = i.split()
    a,b = int(a),int(b)
    print(a+b)

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

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

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

        for i in data:
            print(i)

if __name__ == "__main__":
    main()

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

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