Go: package main

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

var (
	sc = bufio.NewScanner(os.Stdin)
)

func main() {
	for sc.Scan() {
		chunks := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

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

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

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

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

using namespace std;

int main(void)
{

	for(int i = 0; i < 3; i++){
		int a, b;
		scanf("%d %d", &a, &b);
		a+=b;
		int d = 1;
a /= 10;
		while(a > 0){
			a /= 10;
			d++;
		}
		cout << d << endl;
	}

	return 0;
}

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

using namespace std;

int digit(int num){
	if((num / 10) > 0){
		return (digit(num/10))+1;
	}
	else return 1;
}

int main(){
	int num1,num2,result=0;
	char buf[256];
	while(1){
		gets(buf);
		if(buf[0] == '\0')break;
		num1 = 0;
		num2 = 0;
		sprintf(buf,"%d %d",num1,num2);
		result += digit(num1);
		result += digit(num2);
		cout << result << endl;
	}
	return 0;
}

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

int main(){

int i,d,n1,n2,sum,c;


int a[d],b[d];


d=0;
while(d<200){
   cin >> n1 >> n2;
   if(n1 >= 0 and n1 <= 1000000 and n2 >= 0 and n2 <= 1000000){
       a[i]=n1;
       b[i]=n2;
    }
    d++;
}



for (i = 0; i < d; i++) {
     c=0;
     sum=a[i]+b[i];
     while((sum/10)!=0){
         c++;
         sum=sum/10;
     }
   cout << c+1 << "\n";
}

    return 0;
}

C++: #include <iostream>
using namespace std;
int main (){
  int a;
  int b;
  int k;
  int h;
  for(;;){
  cin >>a>>b;
  k=a+b;
  h=0;
  if (k<10&&h==0){
      cout << "1"<<endl;
      h=1;
  }
  if (k<100&&h==0){
    cout << "2"<<endl;
    h=1;
      }
  if (k<1000&&h==0){
    cout << "3"<<endl;
    h=1;
      }
  if (k<10000&&h==0){
    cout << "4"<<endl;
    h=1;
      }
  if (k<100000&&h==0){
    cout << "5"<<endl;
    h=1;
      }
  if (k<1000000&&h==0){
    cout << "6"<<endl;
    h=1;
      }
  if (k<10000000&&h==0){
    cout << "7"<<endl;
    h=1;
      }
  if (k<100000000&&h==0){
    cout << "8"<<endl;
    h=1;
      }
  if (k<1000000000&&h==0){
    cout << "9"<<endl;
    h=1;
      }
  if (k<10000000000&&h==0){
    cout << "10"<<endl;
    h=1;
      }
  }
}

C++: #include <iostream>

int main()
{
	int count, a, b, tmp;

	while(std::cin>>a>>b){
		count = 0;
		tmp = a + b;
		while(tmp > 0){
			count++;
			tmp /= 10;
		}
		std::cout<<count<<std::endl;
	}
	return 0;
}

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

int main(void){
  int c = 0, i = 0, a, b, d;
  char tmp[8]; // 0 - 1000000
//  while(c != EOF){
    while((c = getchar()) != EOF && c != '\n'){
      tmp[i++] = c;
      if(c == ' '){
        tmp[i] = '\0';
        a = atoi(tmp);
        i = 0;
      }
    }
    tmp[i] = '\0';
    b = atoi(tmp);

    d = a + b;
    for(i = 0; d != 0; i++){
      d /= 10;
    }
    printf("%d\n", i);
  //}
  return 0;
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <fstream>

using namespace std;

class cDigitNumber
{
public:
	int count(int, int);
};

int cDigitNumber::count(int a, int b)
{
	long long t = a + b;
	int count = 0;
	while (t >= 10)
	{
		++count;
		t /= 10;
	}
	return ++count;
}

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

	cDigitNumber cdn;
	int a, b;

	while (!cin.eof())
	{
		cin >> a >> b;
		cout << cdn.count(a, b) << endl;
	}

	return 0;
}

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

int main(void){
	int a,b,T,c,d,e,f,g,h,i,A=0;
	while(cin>>a>>b){
		cin>>a>>b;
		T=a+b;
		
		c=T/1000000;
		if(c>=1) A=A+1;
		
		d=T/100000;
		if(d>=1)A=A+1;
		
		e=T/10000;
		if(e>=1)A=A+1;
		
		f=T/1000;
		if(f>=1)A=A+1;
		
		g=T/100;
		if(f>=1)A=A+1;
		
		h=T/10;
		if(h>=1)A=A+1;
		
		i=T/1;
		if(i>=1)A=A+1;
		
		cout<<A<<endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

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


	return 0;
}

C++: #include <stdio.h>

int main()
{
	int a,b;

	while(1)
	{
		int kai;
		int i = 1;
		int j = scanf("%d %d" , &a,&b);
		if(j==EOF) break;

		kai = a+b;

		while(kai > 9)
		{
			kai /= 10;
			i++;
		}

		printf("%d\n" , i);
	}
}

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

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

C++: #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
         int n,m,c=0;
        while(cin>>n>>m)
        {
            int sum=n+m;
            if(sum==0){
                c++;
            }
            while(sum!=0){
                sum=sum/10;
                c++;
            }


        }
         cout<<c<<endl;
    }

C++: #include<iostream>
using namaspace std;
int main()
{
while(scanf("%d %d",&a,&b) != EOF)
{
sum = a + b;
	while (sum > 0){
		sum /= 10;
		result++;
	}
	cout << result;
}

return 0;
}

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

C++: #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#define ll long long
using namespace std;
int main()
{
    //int k,i,j,tep,x,a[170],m;
    int a,b,c,d,e,f,n;
   // long long int n;
    while(cin>>a>>b)
    {
        cout<<(int)log10(a+b)+1<<endl;
    }

    return 0;
}

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

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    int x,y;
    while(cin>>x>>y){
        x+=y;
        int c=1;
        while(x/=10)++c;
        cout<<c<<'\n';
    }
    return 0;
}

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

C++: #include<iostream>
#include<cstring> 
#include<sstream>
using namespace std;
int main()
{
    long long x, y, a;
    
    while(cin>>x>>y) {
        a=x+y;
        ostringstream os;
        os << a;
        string b = os.str();
        
        cout<< b.size() << endl;
    }
    return 0;
    
}

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>
int main(){
	int a,b;
	std::cin>>a>>b;
	int c=a+b;
	if(c>=1000000)std::cout<<7<<std::endl;
	else if(c>=100000)std::cout<<6<<std::endl;
	else if(c>=10000)std::cout<<5<<std::endl;
	else if(c>=1000)std::cout<<4<<std::endl;
	else if(c>=100)std::cout<<3<<std::endl;
	else if(c>=10)std::cout<<2<<std::endl;
	else std::cout<<1<<std::endl;
	return 0;
}

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

int main(){
	int a, b;
	while(cin >> a >> b){
		printf("%d",(int)log10((double)a+b) + 1);
	}
}

C++: #include<iostream>
using namespace std;
int main()
	{
		int a = 0, b = 0, sum, result = 0;
		
		while (cin >>a>>b)
		{

			result = 0;
			sum = a + b;
			while (sum > 0){
				sum /= 10;
				result++;
			}
			cout <<result<<endl;
		}
		return 0;
}