Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int
		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}
		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

C++: #include <stdio.h> 

int main(){
    
    int a,b,n;
        
    scanf("%d",&a);
    scanf("%d",&b);
    
    n = a + b;
    
    if(n < 10){
        printf("1\n");
    }else if(n > 100){
        printf("2\n");
    }else if(n > 1000){
        printf("3\n");
    }else if(n > 10000){
        printf("4\n");
    }else if(n > 100000){
        printf("5\n");
    }else if(n > 1000000){
        printf("6\n");
    }
    
    return 0;
    
}

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

int main(){
	int a[200],b[200],sum[200],dight[200],line;
	for(int num=0;num<200;num++){
	dight[num]=0;a[num]=0;b[num]=0;
	}
	int fl=0;
	for(int num=0;num<200;num++){
	 // cout << "numA and numB"<< endl;
	 fl=0;
	 if(cin!=NULL){
	 cin >> a[num];
	 cin >> b[num];
	 }
	 else {
	 line=num-1;
	 break;
	 }
	 sum[num]=a[num]+b[num];
	 for(;fl!=1;){
	 if(sum[num]>=1){
	 sum[num]=sum[num]/10;
	 dight[num]++;
	 }
	 else fl=1;
    }
    }
    for(int num=0;num<line;num++){
    cout << dight[num]<< endl;
    }
  return 0;
}

C++: #include <iostream>
using namespace std;
int main()
{
    int a, b;
    while(cin >> a >> b){
        int num = a + b;
        int count = 0;
        while(num){
            count++;
            num /= 10;
        }
        cout << count << endl;
    }
    return(0);
}

C++: #include<iostream>
#include<string.h>
#include<stdio.h>
using namespace std;
int main(){
int a,b,c;
char ans[100];
	while(cin>>a>>b){
		sprintf(ans,"%d",a+b);
	c=strlen(ans);
	cout<<c<<endl;
	}
return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a[3]={0},b[3]={0},sum[3]={0},keta[3]={0};
	int x;

	for(x=0;x<3;x++)
	{
		scanf("%d %d",&a[x],&b[x]);
		sum[x]=a[x]+b[x];
		printf("%d\n",sum[x]);
	}

	for(x=0;x<3;x++)
	{
		while(sum[x]!=0)
		{
			sum[x]=sum[x]/10;
			keta[x]++;
		}
		printf("%d\n",keta[x]);
	}

	return 0;
}

C++: #include<stdio.h>

int main( ) {
	int input_a;
	int input_b;
	int answer_math;
	int count = 0;

	scanf("%d""%d",&input_a ,&input_b);

	answer_math = input_a + input_b;

	while( 1 ) {
		answer_math = answer_math / 10;
		count++;
		if( answer_math <= 0 ) {
			break;
		}
	}
	printf("%d",count);

	return 0;
}

C++: #include<iostream>
#include<map>
#include<vector>
#include<list>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<numeric>
#include<climits>
#include<ctime>
#include<cstring>
#include<sstream>
#define REP(i,p,n) for(int i=p;i<(int)(n);i++)
#define rep(i,n) REP(i,0,n)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))
#define all(c) (c).begin(), (c).end()

using namespace std;
template<class T> inline void chmax(T& a, T b) { if(b > a) a = b; }
template<class T> inline void chmin(T& a, T b) { if(b < a) a = b; }

int main() 
{
	int a,b;
	int ans;
	while(cin >> a >> b) {
		ans = a + b;
		string a_str = to_string(ans);
		cout << a_str.size() << endl;
	}

	return 0;
}

C++: #include<stdio.h>
#include<vector>
#include<algorithm>
#include<cmath>
#include<string>
#include<iostream>

int main(){
    int i, j;
    int a,b,c;
    std::vector<int> avec, bvec;
    for (i = 0; i <= 200; i++){
        scanf("%d %d", &a, &b);
        c = a + b;

        std::string str = std::to_string(c);
        std::cout << str.length() << "\n";
    }

    return 0;
}

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

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

	for( int i = 0; i < 3; i++ )
	{
		cin >> a >> b;
		sum = a + b;
		
		char str[10];
		int keta = sprintf( str, "%d", sum );

		cout << keta << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <math.h>
using namespace std;
int main(){
	int a,b;
	int sum=0;
	int count=0;
	vector<int> digits;
	for(int i=0;i<200;i++){
	 cin >> a >> b;
	 sum = a + b;
	 digits.push_back(log10(sum)+1);
	}
	for(int i=0; i<digits.size();++i){
		cout << digits[i] << endl;
	}
	vector<int>().swap(digits);
	return 0;

}

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

int keta(int i){
	if(i<10){
		return 1;
	}else{
		return 1+keta(i/10);
	}
}

int main(){
	int a,b;
	while(!cin.eof()){
	cin >> a >> b;
	cout << keta(a+b) << endl;
	}
}

C++: #include <iostream>
#include <stdio.h>
#include <vector>
#include <algorithm>

#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)

using namespace std;

int main(void){
    
    unsigned number1,number2;
    int keta[205];
    int temp,tempcounter = 0;
    int count =0;
    char judge[20];
    
    while(cin >> number1 >> number2)
    {
        temp = number1+number2;
        while(temp != 0)
        {
            temp = temp / 10;
            if(temp)
                tempcounter++;
            else{
                keta[count] = tempcounter;
                tempcounter = 0;
            }
            
        }
        count++;
        if(count == 201)
            break;
    }
    REP(i, count)
    cout << keta[i]+1<< endl;
    return 0;
}

C++: #include<stdio.h>
int main(void){
	int i,a,b;
	while(scanf("%d %d",&a,&b)!=EOF,a+=b){
		for(i=1;(a/=10)!=0;i++);
		printf("%d\n",i);
	}
	return 0;
}

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

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

C++: #include<iostream>
using namespace std;
 
int main(){
    int a, b, sum, digit;
    while(cin >> a >> b){
        sum = a + b;
        digit = 0;
        while(sum){
            sum = sum / 10;
            digit++;
        }
		if(sum == 0){ digit++; }
        cout << digit << endl;
    };
    return 0;
}

C++: #include <iostream>

int main(void){
while (!std::cin.eof()){
int a,b,c,i;
std::cin >> a >> b;
c=a+b;

while(!(c/=10))
i++;

std::cout << i << std::endl;
}
return 0;
}

C++: #include <stdio.h>

struct dataset{
	int a, b;
	int num_digits;
};

int main(){
	dataset data[200];
	int i, j, sum;

	i = 0;
	do{
		if(scanf("%d %d", &data[i].a, &data[i].b) == EOF) break;
		else i += 1;

		sum = data[i-1].a + data[i-1].b;
		data[i-1].num_digits = 0;
		do{
			data[i-1].num_digits += 1;
			sum /= 10;
		}while(sum != 0);
	}while(i < 200);

	for(j = 0; j < i; j++) printf("%d\n", data[j].num_digits);

	return 0;
}

C++: #include<stdio.h>
int main( ){
  for(int kai=0;kai<200;kai++){
    int a,b,c,d=0;
    
    if( scanf("%d %d",&a,&b) != 2){
      break;
    }
    
    c=a+b;
    while(1){
      if(c==0)break;
      c/=10;
      d++;
    }
    printf("%d\n",d);
  }
  return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main()
{
	int a, b;
	while (1){
		cin >> a;
		if (a < 0){
			break;
		}
		cin >> b;
		auto sum = a + b;
		string str(to_string(sum));
		cout << str.size();
	}

}

C++: #include<stdio.h>
int main(){
  int a,b,sum,c;
  while(scanf("%d %d",&a,&b)!=EOF){
    sum=a+b;
    c=0;
    while(sum!=0){
      sum=sum/10;
      c++;
    }
    printf("%d\n",c);
  }
  return(0);
}

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

int main(){
	string cunning="77675555555555555555555555555555555555555455555555555555555555555555555555555555555555555555555555555555";
	for(int i=0;i<104;i++) cout<<cunning[i]<<endl;
	return 0;
}