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>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <stack>
#include <queue>
#include <cctype>
#include <cstring>
#include <string>
#include <vector>


using namespace std;

int main()
{
    int i,j;
    int t;
    while(scanf("%d",&i) != EOF)
    {
        int sum=0;
        cin >> j;

        while(i!=0)
        {
            t=i%10;
            i= i/10;
            if(t!=0)
                sum++;
        }

        while(j!=0)
        {
            t=j%10;
            j= j/10;
            if(j!=0)
                sum++;
        }

        sum++;
        cout << sum <<endl;
    }
}

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

int main(){ 
    int a,b,cnt=1,i,j=10;

    while(cin>>a>>b){
        int add=a+b;
        while(1){
            i = add - j;
            if(i>=0)cnt++;
            else break;
            j *= 10;
        }       
        cout << cnt << endl;
    }
    return 0;
}

C++: #include <stdio.h>

int main()
{
	int a,b;
	int i;

	for(i=0;i<200;i++)
	{
		scanf("%d", &a);
		scanf("%d", &b);

		if((a+b)<10)
			printf("1\n");
		else if((a+b)>=10 && (a+b)<100)
			printf("2\n");
		else if((a+b)>=100 && (a+b)<1000)
			printf("3\n");
		else if((a+b)>=1000 && (a+b)<10000)
			printf("4\n");
		else if((a+b)>=10000 && (a+b)<100000)
			printf("5\n");
		else if((a+b)>=100000 && (a+b)<1000000)
			printf("6\n");
		else if((a+b)>=1000000 && (a+b)<10000000)
			printf("7\n");
	}
}

C++: #include<cstdio>
#include<string>
#include<iostream>
#include<algorithm>
#define _USE_MATH_DEFINES
#include<math.h>
#include<queue>
#include<set>
#include<vector>
#define INF 100000000

#define MAX_N 100
#define MAX_set 200

typedef long long int ll;
using namespace std;


int main(){

	int a,b;

	while(scanf("%d %d", &a, &b) != EOF){
		printf("%d\n", (int)log10((double)a+b) + 1);
	
	}

	return 0;

}

C++: a;main(b){for(;~scanf("%d%d",&a,&b);printf("%d\n",log10(a+b)+1));}

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

int main(void){
	double n;
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		a+=b;
		if(a!=0) n=log((double)a)/log(10.0);
		else n=-1;
		printf("%d\n",(int)(n+1.0));
	}
	return 0;
}

C++: #include <stdio.h>

int a, b;

int digits(int n)
{
  if (n < 10) return 1;
  return digits(n/10) + 1;
}

int main(void)
{
  while(scanf("%d %d",&a,&b) == 2)
    printf("%d\n",digits(a + b));
  return 0;
}

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

int main(){
   int a[200],b[200],c[200],digit[200];
   int i,imax;
   digit = 1;
   i = 0;
   for(i=0;i<200;i++)digit[i] = 1;
   while(){
     cin >> a[i] >> b[i];
     c[i] = a[i] + b[i];
     i++;
     if(a[i]==NULL||b[i]==NULL)
       break;
   }

   imax = i;

   for(i=0;i<imax+1;i++){
     while(c[i]=>10){
       c[i] =/ 10;
       digit[i]++;
     }
   }

   for(i=0;i<imax+1;i++)cout << digit[i] << endl;

   return 0;
}

C++: #include<iostream>

using namespace std;

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

C++: #include<stdio.h>
#include <string>
#include <iostream>
#include <vector>
#include <sstream>
using namespace std;



int main(void)
{
  //string stream s;
  ostringstream s;
  string os;
  int a,b,c;
  vector<int> array;
  int i=0;
  while(cin>>a>>b)
    {
      s <<(a+b);
	  os=s.str();
	  //cout<<os<<endl;
	  //cout<<os.size()<<endl;
      array.push_back(os.size());
	  if(array.size()==200)break;


    }

  while(i<array.size())
    {
      cout<<array[i]<<endl;
	  i++;
    }

}

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

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

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

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

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
	int a, b;
	cin >> a >> b;
	int c = log10((double)a) + 1;
	int d = log10((double)b) + 1;
	cout << c + d << endl;
	return(0);
}

C++: #include<cstdio>
#include<string>
int main(){
int i;
for(i=0;i<3;i++){
  int a, b;
scanf("%d%d", &a, &b);
a+=b;
std::string c=std::to_string(a);
printf("%d\n", c.length());
}
}

C++: #include<complex>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cmath>
#include<vector>
#include<map>
#include<sstream>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<cassert>
#include<deque>
#include<queue>
#include<climits>
#include<list>
#include<stack>
#include<fstream>
#include<ctime>
#define all(n) n.begin(),n.end()
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define insert(a,b,c,d) PP(P(a,b),P(c,d))
#define F first
#define S second
#define pb push_back
#define INF (1<<27)
#define EPS 1e-10
#define equals(a,b) (fabs((a)-(b)) < EPS)

using namespace std;
typedef pair<int,int> P;
typedef pair<P,P> PP;
typedef unsigned long long ull;
typedef long long ll;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};


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

  /* 
  ofstream ofs("tes");
  ofs << "script -k test.log" << endl;
  system("chmod 755 tes");
  system("at -m -f tes 2:35");
  

  
  system("at exit 2:40");
  system("at cat test.log 2:41");
  */

  cerr << system("pwd") << endl;

return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); i++)
#define repd(i,a,b) for (int i = (a); i < (b); i++)
typedef long long ll;
int main(void)
{
    int a, b;
    while(cin >> a >> b)
    {
        cout << (int)log10((double)(a + b)) + 1 << endl;
    }
}

C++: #include<math.h>
#include<iostream>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
#define INF (1<<30)

using namespace std;


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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <stdio.h>

int main() {
    
    int l, m, n, i;
    
    while (1) {
        
        if(scanf("%d %d", &l, &m) == EOF) break;
        
        n = l + m;
        
        for (i = 1; n >= 9; i++) {
            n /= 10;
        }
        
        
        printf("%d\n", i);
        
    }
    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;

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

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

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