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(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		if(cnt==104) break;
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

int main()
{
  long n1, n2;
  int ans = 0;
  cin >> n1 >> n2;
  int sum = n1 + n2;
  while(sum > 0){
    sum /= 10;
    ans++;
  }
  ans = (n1 == 0 & n2 == 0) ? 1 : ans;
  cout << ans << endl;
}

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

int main(){
	int a;
	while(cin>>a){
		int b,sum;
		cin>>b;
		
		sum = a+b;
		int degit=1;
		while(1){
			if(sum/10==0){
				break;
			}
			sum = sum/10;
			degit++;
		}
		cout<<degit<<endl;
	}
	return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <stdlib.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>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <cstring>
#include <climits>
#include <cmath>
#include <cfloat>

#define FOR(i,b,n) for(int i=b;i<n;i++)
#define CLR(mat) memset(mat, 0, sizeof(mat))
#define INF 1<<25

using namespace std;

int a, b;

int main()
{

	while( cin >> a >> b, !cin.eof() )
	{
		int c = a+b;
		char str[100];
		sprintf( str, "%d", c );

		string s;
		s += str;

		cout << s.size() << endl;
	}

	return 0;

}

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

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

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

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

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

C++: #include<stdio.h>

int main()
{
	unsigned int a,b,sum;
	unsigned char digits;

	while(scanf("%d %d",&a,&b) == 2)
	{
		sum = a + b;
		digits = 0;

		while(sum != 0)	
		{
			digits++;
			sum = sum / 10;
		}
		printf("%d\n",digits);
	}
	return 0;
}

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

int main()
{
	  int a,b,sum=0;
	  while((scanf("%d", &a) != EOF)&&scanf("%d", &b) != EOF)
	  {
	  int lengthA=1,lengthB=1;
	  while(a/=10)
          {lengthA++;}		   		
	  while(b/=10)
	  {lengthB++;}
	  cout<<lengthA+lengthB<<endl;
	  }	   
          return 0;
}

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

main(void){
    int a[3],b[3],c[3];
    
    scanf("%d %d", &a[0], &a[1]);
    scanf("%d %d", &b[0], &b[1]);
    scanf("%d %d", &c[0], &c[1]);
    
    a[0] = a[0] + a[1];
    b[0] = b[0] + b[1];
    c[0] = c[0] + c[1];
    
    for( a[3] = 0; a[0] > 1; a[3]++) a[0] / 10;
    for( b[3] = 0; b[0] > 1; b[3]++) b[0] / 10;
    for( c[3] = 0; c[0] > 1; c[3]++) c[0] / 10;
    
    printf("%d\n%d\n%d\n", a[3], b[3], c[3]);

    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i=0;i<n;i++)

int ketasu(int n) {
  int ans=0;
  while (n!=0) {
    n/=10;
    ans++;
  }
  return ans;
}

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

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

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

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

C++: #include <stdio.h>
int main( void ){
  
int a,b;
    scanf( "%d %d",&a,&b );
      a = a + b;
       int n = 1;
      int j = 0;
      while( true ){
            if( a / n >= 1 ) n *= 10;
            else               break;
          j++;
      }
    printf( "%d\n",j );
    return 0;
}

C++: #include <sstream>

#include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int a, b;
	cin >> a >> b;
	string x=to_string(a+b);
	cout << x.size() << endl;
	return 0;
}

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

#pragma warning(disable:4996)
#define MAX_DATA (200)
int main()
{
	char Work[MAX_DATA][256];

	int Num[2];
	int Divide;
	int nCnt2,nCnt = 0, Result, Keta = 1;

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
		gets(Work[nCnt2]);

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
	{
		for (nCnt = 0; Work[nCnt] != '\0'; nCnt++)
		{
			if (Work[nCnt2][nCnt] == ' ')
			{
				char Work2[256];
				char Work3[256];

				strcpy(Work2, &Work[nCnt2][nCnt]);

				Work[nCnt2][nCnt] = '\0';

				strcpy(Work3, Work[nCnt2]);

				Num[0] = atoi(Work3);
				Num[1] = atoi(Work2);
				break;
			}
		}

		Result = Num[0] + Num[1];

		Keta = 1;
		for (nCnt = 0; ;nCnt++)
		{
			Result = Result / 10.0f;

			if (Result > 0)
				Keta++;
			else
				break;
		}

		printf("%d\n", Keta);
	}
	
	return 0;
}

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

int main()
{
	int a,b,c;
	while(cin >>a >>b){
	c = a+b;
	int ret = 1;
	for(int i=1;;i++){
		if( c/pow(10,i)>=1){
			ret++;
		}else{
			break;
		}
	}
	cout <<ret <<endl;
    }
	return 0;
}

C++: //#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
//#include <cstdio>
//#include <cstdlib>
//#include <cmath>
#include <iostream>
#include <algorithm>
//#include <cstring>
#include <vector>
#include <string>
#include <map>
#include <list>
#include <queue>
#include <set>
using namespace std;

int main(void){

	int a, b;
	
	while(cin >> a >> b){
	
	string num = std::to_string(a+b);
	
	cout << num.size() << endl;
	}

	return 0;
}

/*
for(i=0;i<N;i++){
	cin >> X[i];
}


for(i=0;i<N;i++){
	for(j=0;j<N;j++){
		cin >> X[i][j];
	}
}
*/

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

using namespace std;

int main(){
	while (true){
	int a,b;
	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>99){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}
	}

C++: #include<iostream>
using namespace std;
int main(){
	int a,b,c,i;
	while( !(cin.eof())){
		cin >> a >> b;
		c = a + b;
		for(i = 0; c != 0; i++){
			c /= 10;
		}
		cout << i << endl;
	}
	return 0;
}

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

int main()
{
  int a, b, c, n;
  while(cin >> a){
  cin >> b;
  c = a + b;
  n = 0;
  while(c != 0){
    n++;
    c /= 10;
  }
  cout << n << "\n";
}

return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  long int a,b;
  int x[200];
  int n = 0;
  while(cin >> a >> b){
    x[n] = 0;
    a = a + b;
    while(1){
      a = a/10;
      if(a >= 10)
        x[n]++;
    }
    n++;
  }

  for(int i = 0; i < n; i++)
    cout << x[i] << '\n';

  return 0;
}

C++: #include<stdio.h>
main(){
  int a,b,ans;
  double c;
  int i;
  
  while(scanf("%d %d",&a,&b)!=EOF){
    
    c=a+b;
    
    for(i=1;i<=7;i++){
      c=c/10.0;
      if(c<1.0){
	ans=i;
	break;
      }
    }
    
    printf("%d\n",ans);
    
  }
  
  return 0;
  
}