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

C++: #include <bits/stdc++.h>

using namespace std;

int main(){
	int a,b;
while(cin>>a>>b){
	}
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

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

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

int main() {
	int a, b;
	while (cin >> a >> b)
		cout << (int)(log10(a + b) + 1) << endl;
	return 0;
}

C++: #include<stdio.h>

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

	while(scanf("%d %d",&a,&b)!=EOF)
	{
		sum=a+b;
		count++;

		while(sum>=10)
		{
			sum=sum/10;
			keta[x]++;
		}

		keta[x]++;
		x++;
	}

	for(x=0;x<count;x++)
	{
		printf("%d\n",x,keta[x]);
	}

	return 0;
}

C++: #include<bits/stdc++.h>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cctype>

#include<cmath>
#include<iostream>
#include<fstream>

#include<string>
#include<vector>
#include<queue>
#include<map>
#include<algorithm>
#include<set>
#include<sstream>
#include<stack>

using namespace std;

int main()
{
    long long int n,i,j,a,b,c,aa,bb,digit,digit1,ck=0,dk=0;
    while(scanf("%lld %lld", &a, &b)!=EOF){

    aa = a +b;
    c = aa;
    while(aa){
        aa/=10;
        ck++;
        }

    cout<<ck<<endl;
    ck=0;
    }
}

C++: //#define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		++cou;
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++cou;
			}
		}
		printf("%d", cou);
		cou = 0;
	}
}

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

int main(){
    int a,b;
    while(cin >> a >> b){
        stringstream ss;
        ss << a + b;
        string str = ss.str();
        cout << str.length() << endl;
    }
    return 0;
}

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

C++: #include <iostream>

using namespace std;

int main(){
	int a, b, c;
	int i = 1;

	cin >> a >> b;
	c = a+b;

	while(c>1){
		c = c/10;
		i++;
	}
	

		cout << i << endl;
}

C++: #define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		if (sum != 0){
			while (1) {
				++cou;
				if (sum <= 1) break;
				sum /= 10;
			}
		}
		printf("%d\n", cou);
		cou = 0;
	}
}

C++: #include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
    int a, b, c, d;
    char s[10000];
    scanf("%d %d", &a, &b);
    c = a + b;
    itoa(c ,s , 10);
    d = strlen(s);
    printf("%d", d);
    return 0;
}

C++: #include <cstdio>
   
#define MAX 1000000
#define MIN 0
#define SIZE 200
   
int main() {
 int i,j;
 int a,b;
 int cnt = 0;
 int buf = 0;
 int sets[SIZE];
   
 while(scanf("%d %d",&a,&b) != EOF) {
  if((a < MIN) || (b > MAX)) {
   continue;
  }
    
  sets[cnt] = a + b;
  ++cnt;
 }
  
 for(i = 0;i <= cnt;++i) {
  j = MAX;
 
  while(j != 0) {
   if((sets[i] / j) != 0) {
    ++buf;
    sets[i] -= (sets[i] / j) * j;
   }
   
   j /= 10;
  }
  
  sets[i] = buf;
  buf = 0;
 }
  
 for(i = 0;i <= cnt;++i) {
  printf("%d\n",sets[i]);
 }
  
 return 0;
}

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

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

int main(void){

	int a, b, d, z;
	
	cin >> a >> b;
	
	z = a + b;
	
	for(int i=0, d=10;; i++, d*=10){
		if((z / d) == 0){
		  cout << i+1 << endl;
		  return 0;
		}
	}
	
}

C++: #include<stdio.h>

int main()
{
	int a, b;
	while(scanf("%d %d", &a, &b) != EOF)
	{
		int digit = 1;
		int result = a + b;
		while(result >= 10)
		{
			result/=10;
			digit++;
		}
		printf("%d\n", digit);
	}

	return 0;
}

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

using namespace std;

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

	int a, b;
	while (cin >> a >> b)
		cout << to_string(a + b).size() << endl;

	return 0;
}

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

int main() {
  int a, b;
  while(cin >> a >> b) {
    char buff[100];
    sprintf(buff, "%d", a+b);
    cout << strlen(buff) << endl;
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
	int a,b;
	while(true){
	cin>>a>>b;
int c=0;
int n;
n=a+b;
while (n>0){
	c++;
	n=n/10;
}

cout<<c<<endl;
}
}

C++: #include <cstdio>

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

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
    int a,b;
    while(cin>>a>>b){
        int h=a+b;
        int i=1;
        while(true){
            if(h<10)
                break;
            h/=10;
            i++;
        }
        cout<<i<<endl;
    }
    return 0;
}

C++: /*
??????????????????????????´??° a ??¨ b ??????????????°???????????????????????°?????????????????????????????????
???????????????????????° <= 200
*/

#include <iostream>
#include <string>

using namespace std;
 
int main()
{

	int a, b, calc, strCount = 0;
	string str = "";

	for ( int i = 0; i < 200;  i++ ) {
		a = b = 0;
		
		cin >> a >> b;

		if ( a == 0 && b == 0 ) {
			break;
		}

		calc = a + b;
		str = to_string( calc );
		strCount = str.size();
		
		cout << strCount << endl;
	}

    return 0;
}

C++: #include<iostream>

int main()
{
	int x,y,sum=0;
	std::cin>>x>>y;
	x+=y;
	while(x){
		sum+=1;
		x=x/10;
	}

	std::cout<<sum<<std::endl;

	return 0;
}

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){
    
    int number1,number2;
    int judge[210]={-1};
    int count = 0;
    while(cin >> number1 >> number2)
    {
        judge[count] = ((number1+number2) / 10)+1;
        count++;
    }
    REP(i, count)
    cout << judge[count] << endl;
    return 0;
}

C++: #include<iostream>
using namespace std;
int main (){
	int a,b,gou,p,i,j;
	for(i=0;i<200;i++){
		p=0;
		cin>>a>>b;
		gou=a+b;
		for(j=0;j<7;j++){
			if(gou>0){
				p++;
			}
			else{
				break;
			}
			gou=gou/10;
		}
		cout<<p<<endl;
	}
	return 0;
}//1829×1029

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int n,ans;
  int a,b;
  while(cin>>a>>b){
    int cnt=1,num=0;
    ans=a+b;
    while(1){
      num++;
      ans=ans/cnt;
      if(ans<10)
	break;
      ans=a+b;
      cnt*=10;
    }
    cout<<num<<endl;
  }
  return 0;
}