Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func Sliceconvtoi() []int {
	strs := strings.Split(sc.Text(), " ")

	var ints []int
	var x int

	for _, s := range strs {
		x, _ = strconv.Atoi(s)
		ints = append(ints, x)
	}

	return ints
}

func main() {
	for sc.Scan() {
		i := Sliceconvtoi()
		fmt.Println(int(math.Log10(float64(i[0]+i[1]))) + 1)
	}

}

C++: #include <iostream>

using namespace std;
int main(void){

int inputA=0;
int inputB=0;
int loopT=0;
int sum[200]={};
int output=0;

for(int i=0;i<200;i++){
	inputA=0;
	inputB=0;
	cin >>inputA >>inputB;
	if(inputA+inputB!=0){
	sum[i]=inputA+inputB;
	}else{
	loopT=i;	
	i=200;
	}
}


for(int i=0;i<loopT;i++){
	output=1;
		for(int j=0;j<100;j++){
			sum[i]=sum[i]/10;
			if(sum[i]>0){
				
				output++;
			}else{
			cout <<output <<endl;
			j=100;
			}
		}
}

}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <fstream>

using namespace std;

class cDigitNumber
{
public:
	int count(int, int);
};

int cDigitNumber::count(int a, int b)
{
	long long t = a + b;
	int count = 0;
	while (t >= 10)
	{
		++count;
		t /= 10;
	}
	return ++count;
}

int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);

	cDigitNumber cdn;
	int a, b;

	while (1)
	{
		cin >> a >> b;
		if (cin.fail()) break;
		cout << cdn.count(a, b) << endl;
	}

	return 0;
}

C++: #include<iostream>

using namespace std;

void solver() {
    int a,b;
    while(cin>>a>>b){
        cout<<to_string(a+b).length()<<endl;
    }
}

int main() {
    solver();
    return 0;
}

C++: #include <iostream>
#include <array>

using namespace std;

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

C++: #include<stdio.h>

int main()
{
	int a[200],b[200],i=0,j,count=0,z;
	while(scanf("%d %d",&a[i],&b[i]) != EOF){
		i++;
	}
	for(j=0;j<i;j++){
		z=a[j]+b[j];
		for(count=0;z!=0;count++) z/=10;
		printf("%d\n",count);
		count=0;
	}
	return 0;
}

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

int main()
{
	int x, y;
	while (cin >> x >> y){
		cout << to_string(x + y).size() << "\n";
	}
	cout.flush();
}

C++: #include <iostream>

using namespace std;

int main() {

	const int num=3;
	int a[num], b[num];

	for (int i = 0; i < num; i++) {
		cin >> a[i] >> b[i];
	}

	for (int i = 0; i < num; i++) {

		int sum = a[i] + b[i];
		int keta = 1;
		while (1) {
			if (sum >= 10) {
				keta++;
				sum /= 10;
			}
			else {
				break;
			}
		}

		cout << keta << endl;

	}

	return 0;

}

C++: #include<iostream>

using namespace std;

 int main(){
  int a,b,n,sum;
  int x[200];

  n = 0;
  
  while(cin >> a >> b){
  
   sum = a + b;
   x[n] = 0;
   
   for(int i = sum; i >= 1; i/10){
    x[n]++;
   }
    
   cout << x[n] << endl;
    
   n++;
  }
  
 return 0;
}

C++: #include <stdio.h>
#include <stdlib.h>

int main(void){
  int c, i, j, a, b, d;
  c = 'a';
  char tmp[8]; // 0 - 1000000
  for(j = 0; c != EOF && j <= 200; j++){
    i= 0;
    while((c = getchar()) != EOF && c != '\n'){
      tmp[i++] = c;
      if(c == ' '){
        tmp[i] = '\0';
        a = atoi(tmp);
        i = 0;
      }
    }
    tmp[i] = '\0';
    b = atoi(tmp);

    d = a + b;
    for(i = 0; d != 0; i++){
      d /= 10;
    }
    printf("%d\n", i);
  }
  return 0;
}

C++: import Data.List.Split
import Control.Applicative

readInt = (read :: String -> Integer)

main = do
    s <- (splitOn "\n") <$> getContents
    let nums = [map readInt $ splitOn " " t | t <- s]
    putStr $ unlines [show $ x + y | [x,y] <- nums]

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

int main(){
	int a, b;
	cin >> a >> b;
	string s = to_string(a + b);
	cout << s.size() << endl;
	return 0;
}

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

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

C++: #include<iostream>
#include<cstdio>

using namespace std;

int a,b;
int s;
int Count;
int main(){
  Count = 0;
  while(scanf("%d %d",&a,&b) != EOF){
  s = a+b;
  for(; s != 0; s/=10){
    Count++;
  }
  printf("%d\n",Count);
  }
  return 0;
}

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

int main()
{
	int i,j ;
	while( cin >> i >> j )
	{
		i += j ;
		int count ;

		while( i > 0 )
		{
			i = i / 10 ;
			count ++ ;
		}

		cout << count << endl ;
	}

	return 0 ;
}

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

int f(int c){
	int d = 1;
	
	while(c >= 10){
		c = c/10;
		d++;
	}
	
	cout << d << endl;
	return 0;
}

int main() {
	int a;
	while(cin>>a){
		int b;
		cin >> b;
		
		int c = a + b;
		f(c);
	}
	
	return 0;
}

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

int main(){
    int a,b,c,i;
	for(int j=0;j<250;j++){
		cin >> a >> b;
		c = a+b;
		for(i=1;true;i++){
			c = c/10;
			if(c==0)break;
		}
		cout << i << endl;
	}

    
    return 0;
}

C++: #include<stdio.h>
int main(){
	int x,y,i;
	for(i=0;i<200;i++){
	scanf("%d %d",&x,&y);
	if((x+y)==0) printf("0\n");
	else if((x+y)<10) printf("1\n");
	else if((x+y)<100) printf("2\n");
	else if((x+y)<1000) printf("3\n");
	else if((x+y)<10000) printf("4\n");
	else if((x+y)<100000) printf("5\n");
	else if((x+y)<1000000) printf("6\n");
	else printf("7\n");
	}
	return 0;
}

C++: #include<stdio.h>


int main(){
	char a[21];
	char b[21];
	int A;
	int B;
	int i;
	int l=1;
	fgets(a,sizeof(a),stdin);
	fgets(b,sizeof(b),stdin);
	sscanf(a,"%d", &A);
	sscanf(b,"%d", &B);
	i=A+B;
	while((i  >= 10)){
		i=i/10;
		l=l+1;
	}
	printf("%d" ,l);
}

C++: #include <iostream>
#include <vector>

int get_number_of_digits(int num)
{
    if(num == 0)
        return 1;
        
    int digit = 0;
    while(num != 0){
        num /= 10;
        ++digit;
    }
    return digit;
}

int main()
{
    const int num_of_data = 200;
    const int min = 0;
    const int max = 1000000;
    
    int a, b, i = 0;
    //std::cout << num_of_data << "個のまでの整数データa bの入力" << std::endl;
    while(std::cin >> a >> b && i < 200){
        if(min <= a && a <= max && min <= b && b <= max){
            std::cout << get_number_of_digits(a + b) << std::endl;
            ++i;
        }
    }
    
    return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
#include<string.h>

int i,j,a,b,c,ans=0;

int main(){
	scanf("%d %d",&a,&b);
	c=a+b;
	while(c!=0)c=c/10,ans++;
	printf("%d",ans);
	
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
  int a;
  int b;
  int k;//足した和
  int p;//引く数 
  int r;

  for(;;){
    cin >> a >> b;
    k=a+b;
    for(int i=0;i<1000001;i++){
      p=1;
      for(int j=1;j<i;j++){
	p=p*10;
      }
    
      if(k<p){
	cout << i-1 << endl;
	i=99999999;
      }	 
    }
  }
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
	int t=60000;
	for(int i=t;i;i--){
		for(int j=i;j;j--){
			if(i+j==2)a+=b;
		}
	}
	int cnt=0;
	while(a)a/=10,cnt++;
	cout<<cnt<<endl;
	}
	return 0;
}

C++: #include <stdio.h>

using namespace std;


int main(){
	int a,b,count,s;

	while(scanf("%d %d",&a,&b)!=EOF){
		count=0;
		s=a+b;
		while(s!=0){
			s/=10;
			count++;
		}
		printf("%d\n",count);
	}

    return 0;
}

C++: #include <iostream>

using namespace std;
int main(){
	int n,m,sum,count;
	for(int i=1;cin.eof()==false;i++){
		cin >> n >> m;
		sum = n + m;
		cout << sum << endl;
		count = 0;
		while(sum!=0){
			sum /= 10;
			count++;
		}
		cout << count << endl;
	}
}

C++: #include <iostream>
#include <cmath>

using namespace std;

int main(){
	int a, b;
	int sum=0;

	while(cin >> a >> b){

	sum = log10(a+b) +1;
	

		cout << sum << endl;
	}
}

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

int main(){
int a,b;
while(cin>>a>>b){
cout<<(int)(log((double)a+b)-1)<<endl;
}

return 0;
}