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>
#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;
}

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

int keta(int i){
	int k=1;
	while(i>=10){
		k++;
		i=i/10;
	}
	return k;
}

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

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main(){
	int a1[200],b[200],f,i=0,a,g,k=0;
	while(cin>>f){
		scanf("%d %d",&a1[i],&b[i]);
		i++;
	}
	for(int j=0;j<i;j++){
		a=a1[j]+b[j];
		for(g=0;;g++){
			if(a==0&&g==0){
				printf("0\n");
				break;
			}
			a=a/10;
			k++;
			if(a==0){
				printf("%d\n",k);
				break;
			}
		}
		k=0;
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
	int a, b, sum;
	cin >> a >> b;
	sum = a + b;
	if (sum < 10)cout << "1" << endl;
	if (sum < 100 && sum >= 10)cout << "2" << endl;
	if (sum < 1000 && sum >= 100)cout << "3" << endl;
	if (sum < 10000 && sum >= 1000)cout << "4" << endl;
	if (sum < 100000 && sum >= 10000)cout << "5" << endl;
	if (sum < 1000000 && sum >= 100000)cout << "6" << endl;
}

C++: #include<iostream>
using namespace std;
int main() {
	int a, b;
	while (cin >> a >> b) {
		if (a + b < 10){
			cout << 1 << endl;
		}
		else if (a + b < 100){
			cout << 2 << endl;
		}
		else if (a + b < 1000) {
			cout << 3 << endl;
		}
		else if (a + b < 10000) {
			cout << 4 << endl;
		}
		else if (a + b < 100000) {
			cout << 5 << endl;
		}
		else if (a + b < 1000000) {
			cout << 6 << endl;
		}
		else if (a + b < 10000000) {
			cout << 7 << endl;
		}
	}
}

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


	return 0;
}

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

using namespace std;

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

C++: #include<stdio.h>
#include<math.h>
int main(void)
{
	int a[100], b[100], c, i;
	for(i=0;(a[i]!='\n')||(b[i]!='\n');i++)
	{
		scanf("%d %d", &a[i], &b[i]);
		c = a[i]+b[i];
		printf("%d\n", log(c));
	}
	return 0;
}

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

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

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

for(int kaisu=0;kaisu<N;kaisu++)
{
 n=1;
 cin>>a>>b;
 if(a>=0 && b>=0 && a<=1000000 && b<=1000000)
 	{
	 a = a+b;
	 while(a>=10)
	 	{
		 a = a/10;
		 n++;
	 	}
 	}
  cout<<n<<endl;
}

}

C++: #include<stdio.h>
#include<math.h>
int main()
{
    int a,b,res;

    while((scanf("%d%d",&a,&b)!=EOF)&&((a+b)>=0))
    {
        if((a+b)==0)
            printf("0\n");
        else if((a+b)<10)
            printf("1\n");

        else
            printf("%.0lf\n",ceil(log10(a+b)));
    }

    return 0;
}

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

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

int main() {
	float a,b,sum;
	int cont=0;
	do
	{
	cin>>a;cin>>b;
	}while(a<0||a>1000000||b<0||b>1000000);
	sum=a+b;
	do
	{
		sum=sum/10;
		cont++;
	}while(floor(sqrt(sum))!=0);
	cout<<cont<<endl;
	return 0;
}

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

int main(void){
	int a,b;
	cin >> a; cin >> b;
	int c=a+b;
	int i=0;

	while(c!=0){
		c/=10;
		i++;
	}
	cout << i << endl;
	return 0;
}

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

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

	return 0;
}

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

int main()
{
	int n = 200;
	while (n--) {
		int a, b;
		stringstream ss;
		string sum;
		cin >> a >> b;
		ss << a + b;
		sum = ss.str();

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

	return 0;
}