Go: package main

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

func sliceAtoi(sa []string) ([]int, error) {
	si := make([]int, 0, len(sa))
	for _, a := range sa {
		i, err := strconv.Atoi(a)
		if err != nil {
			return si, err
		}
		si = append(si, i)
	}
	return si, nil
}

func getDigits(ary []int) (digits int) {
	sum := 0
	for _, v := range ary {
		sum += v
	}

	for sum != 0 {
		sum /= 10
		digits++
	}
	return
}

func getsTwoNumAsArray() (nums [][]int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}

		ary, _ := sliceAtoi(strings.Split(str, " "))
		nums = append(nums, ary)
	}

	return
}

func main() {
	ary := getsTwoNumAsArray()

	for _, v := range ary {
		fmt.Println(getDigits(v))
	}
}

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)

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

Python: l = list(map(int, input().split()))
a = []
while(l != []):
    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: a,b=map(int,input().split())
sum=a+b
sum=str(sum)
print(len(sum))

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

Python: a, b = map(int, input().split())

c = a + b

digits = 0

while c != 0:
    c = int(c / 10)
    digits += 1

print(digits)

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

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

Python: import sys

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

Python: import sys
for e in sys.stdin.readlines():
 print(len(str(eval('+'.join(e.split())))))

Python: import sys

[print(len(str(sum([int(j) for j in i.split()])))) for i in sys.stdin]

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

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

Python: import sys

if __name__ == '__main__':

    nums = []

    for line in sys.stdin:
        if line == "\n":
            break
        else :
            nums.append([int(item) for item in line.split(" ")])

    for n in nums:
        sum = n[0] + n[1]
        print(len(str(sum)))

Python: while True:
    try:
        line = input()
    except EOFError:
        break
    for c in line:
        print(len(filter(lambda c: c in '123456789', line)))

Python: import math

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

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

Python: judge = True
while judge:
    a,b = map(int, input().split(" "))
    if a != None:
        c = a+b
        print(len(str(c)))
    else:
        judge = False

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

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

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

except EOFError:
    pass

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

Python: # coding: utf-8
import sys

N = sys.stdin.read().splitlines()

for n in N:
    i, j = [int(i) for i in n.split()]
    print(len(str(i+j)))

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

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,10))
    if b==0:
        b=1
    else:
        b = int(1.0+math.log(b,10))
    if a==0 and b==0:
        print(1)
    else:
    	print(a+b)

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

Python: #!/usr/bin/env python3

import collections
import sys

def read_prob():
    inputs = []
    try:
        while True:
            line = input().strip().split()
            a, b = line[0], line[1]
            inputs.append(int(a) + int(b))
    except EOFError:
        pass
    return inputs

if __name__ == '__main__':
    inputs = read_prob()
    for inp in inputs:
        answer = len(str(inp))
        print(answer)

Python: import sys

while True:
    line = sys.stdin.readline()
    if not line:
        break
    token = list(map(int, line.strip().split()))
    print(len(str(token[0] + token[1])))

Python: data_set_count = 3
data_set = []
for _ in range(data_set_count):
    data_set.append(list(map(int, input().split())))

for i in range(data_set_count):
    data = data_set[i][0] + data_set[i][1]
    print(len(str(data)))

Python: import sys
for x in sys.stdin:
	s = x.split()
	a,b = int(s[0]), int(s[1])
	print(len(str(a+b)))

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

Python: import sys,math

inputs = list()

for n in sys.stdin:
    inputs.append(list(map(int,n.split())))

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

Python: answers=[]
while True:
    try:
        nums=input().split()
        answers.append(len(nums[0])+len(nums[1]))
    except:
        break

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

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main(){
 
  int a,b;
  while(1){
	  scanf("%d %d",&a,&b);
  int i = 0;
  a = a + b;
  while(a > 0){
    a = a / 10;
    i++;
      }
 
  cout << i << endl;
 
  }



}

C++: #include <iostream>
using namespace std;

int main(){
	
	int a,b;
	while(cin>>a>>b){
		int c=0;
		a+=b;
		for(;a>0;a/=10)c++;
		cout<<c<<endl;
	}
	
	return 0;
}

C++: #include <bits/stdc++.h>
#include <stdlib.h>
#define INF 114514810
#define FOR(i, r, n) for(int i=(r); i<(n); i++) 
#define REP(i, n) FOR(i, (0), n)
template<typename T>
void remove(std::vector<T>& vector, unsigned int index)
{
	vector.erase(vector.begin() + index);
}

using namespace std;

int n=0, a, b;

int main(){
	while (cin >> a >> b){
		a += b;
		while (a > 0)
		{
			n++;
			a /= 10;
		}
		cout << n << endl;
		n = 0;
	}
}

C++: #include <bits/stdc++.h>
using namespace std;

int main(){
	cout << "Hello, world!" << endl;
}

C++: #include <stdio.h>
#include <math.h>
#include <iostream>
using namespace std;

int main(void){
	int a,b,dig,i;
	double sum;
	while(1){
		std::cin >> a >> b;
		if(a=='EOF') break;
		sum = (double)a+(double)b;
		dig = floor(log(sum)/log(10.0));
		std::cout << dig+1 << "\n";
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
	int a[500], b[500],sum[500],d[500],k[500];
	int i = 0;
	k[500] = 0;
	while (1) {
		cin >> a[i] >> b[i];
		sum[i] = a[i] + b[i];
		while (!sum[i]) {
			sum[i] /= 10;
			k[i]++;
		}
		if (a[i] == 0 && b[i] == 0)break;
		i++;
	}
	while (!k[i]) {
		cout << k[i] << endl;
	}
	return 0;
}