Go: package main

import (
	"fmt"
	"strconv"
)

func main() {
	result := make([]int, 0, 200)

	for {
		var a, b int
		scanCount, _ := fmt.Scanf("%d %d", &a, &b)
		if scanCount == 2 {
			result = append(result, a+b)
		} else {
			break
		}
	}

	for _, v := range result {
		length := len(strconv.Itoa(v))

		fmt.Println(length)
	}
}

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


int main()
{
	int a,b;
	scanf("%d %d",&a,&b);
	printf("%d",(int)log10((double)(a+b)) + 1);
	return 0;
}

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

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

int main()
{
	int a,b,c;
	stringstream s;

	cin >> a >> b;
	c = a+b;
	
	s << c;
	cout << s.str().size() << 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 > 0 ) n*= 10;
        else               break;
        j++;
    }
    printf( "%d",j );
    return 0;
}

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

C++: #import<iostream>
main(){int a,b;while(std::cin>>a>>b){for(a+=b,b=0;a,++b,a/=10;);std::cout<<b<<"\n";}}

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

C++: #include<iostream>
#include<sstream>
#include<cstdio>
#include<fstream>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<deque>
#include<map>
#include<set>
#include<algorithm>
#include<string>
#include<cmath>
#include<cstdlib>
using namespace std;

int size(int n){
	int ret = 0;
	while(n>0){
		++ret;
		n/=10;
	}
	return ret;
}

int main(){
	int i,j;
	while(scanf("%d %d",&i,&j)){
		printf("%d\n",size(i+j));
	}
	return 0;
}

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

int main(){
  int l[200];
  int m[200];
  int k=-1;
  for(int i=0;!cin.eof();i++,k++){
    cin >> l[i];
    cin >> m[i];
  }

  for(int j=0;j<k;j++){
  cout<< (int)log10(l[j]+m[j])+1 << endl;
  }
  return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main (){
    int a[1000000],b[1000000];
    for(int i=0;i<200;i++){
        cin>>a[i]>>b[i];
    
        if(a[i]+b[i]<10){
        cout<<"1"<<endl;
        }
        else if(a[i]+b[i]<100){
        cout<<"2"<<endl;
        }
        else if(a[i]+b[i]<1000){
            cout<<"3"<<endl;
        }
        else if(a[i]+b[i]<10000){
            cout<<"4"<<endl;
        }
        else if(a[i]+b[i]<100000){
            cout<<"5"<<endl;
        }
        else if(a[i]+b[i]<1000000){
            cout<<"6"<<endl;
        }
        else if(a[i]+b[i]<10000000){
            cout<<"7"<<endl;
        }
    }
    return 0;
}

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

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

    int a,b;
    int num;
    while (std::cin >> a >> b) {
        num = a+b;
        unsigned digit=0;
        while(num!=0){
            num /= 10;
            digit++;
        }
        std::cout << digit << std::endl;
    }
    
    return EXIT_SUCCESS;
}

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

using namespace std;

int main(){
	while(!cin.eof()){
		int a,b;
		cin>>a>>b;
		int m = a+b;
		int d = 0;
		if(m == 0){
			cout << "1" << endl;
			continue;
		}
		while(m > 0){
			m /= 10;
			d++;
		}
		cout << d << endl;
	}
	return 0;
}

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

int main()
{
	const int BUFF_SIZE = 100;
	char buff[BUFF_SIZE];
	
	while (NULL != fgets(buff, BUFF_SIZE, stdin))
	{
		int a, b;
		sscanf(buff, "%d %d", &a, &b);
		sprintf(buff, "%d", a + b);
		printf("%d\n", strlen(buff));
	}
	
	return 0;
}

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

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

C++: #include <iostream>
using namespace std;
int main( void )
{
	while ( !cin.eof() )
	{
		long long a, b;

		cin >> a >> b;
		if ( cin.eof() )
			break;
		long long sum = a + b;

		int cnt = 0;
		while ( sum >= 10 )
		{
			sum /= 10;
			cnt++;
		}
		
		int kotae = cnt + 1;
		cout << kotae << endl;

	}
	return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<math.h>
using namespace std;
int unco(int n);

int main(int argc, char *argv[]){
	int a[200],b[200];
	cin>>a[0];cin>>b[0];
	a[0]+=b[0];
		cout<<unco(a[0])<<endl;
	for(int i=0;a[i]!=NULL;){
		i++;
		cin>>a[i];cin>>b[i];
		a[i]+=b[i];
		cout<<unco(a[i])<<endl;
	}
	return 0;
}
int unco(int n){
	int i;
	return (int)(logf((float)n)/logf(10.0))+1;
}

C++: #include<iostream>

using namespace std;

int main() {
	int a, b;
	int work;
	int ans = 0;
	while (cin >> a >> b) {
		ans = 0;
		work = a + b;
		while (work > 0) {
			work = work / 10;
			ans++;
		}
		cout << ans << endl;
	}

	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a[200],b[200],sum[200],keta[200],cnt=0;

	for(int i=0;i<3;i++) //input
		scanf("%d%d",&a[i],&b[i]);

	for(int i=0;i<3;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		keta[i]=cnt;
		cnt=0;
	}

	for(int i=0;i<3;i++) //output
		printf("%d\n",keta[i]);

	return 0;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
  int n,m;
  while(cin>>n>>m){
    cout<<(int)log10((double)(n+m))+1<<endl;
  }
}

C++: #include<iostream>
using namespace std;
int main(){
int a=0,b=0,c=0;
while(cin>>a>>b){
	if(a+b==0){
		cout<<c<<endl;
		c=0;
	}
	else{
	for(int x=1;x<=a+b;x=x*10){
		c=c+1;	
	}
	cout<<c<<endl;
	c=0;
}
}
}

C++: #include<iostream>
using namespace std;
int main()
{
int a,b,i;
i=0;
while(cin>>a>>b)
{
cin>>a>>b;
i++;
}
for(int j=0;j<i;j++)
{
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;
}
}
return 0;
}

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

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

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

C++: #include <stdio.h>

int main(void)
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=0;

	scanf("%d",&set);
	for(int i=0;i<set;i++){
		scanf("%d%d",&a[i],&b[i]);

		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		keta[i]=cnt;
		cnt=0;
	}

	for(int i=0;i<set;i++) //output
		printf("%d\n",keta[i]);

	return 0;
}

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

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

C++: #include <iostream>
#include <cmath>
int main(){
long a, b, digits;
std::cin >> a;
std::cin >> b;
if(a == 0 && b == 0)
digits = 1;
else
digits = (int)(std::log10((double)(a+b))) + 1;
std::cout << digits << std::endl;
return 0;
}