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 <iostream>
 
u_int getDigit(u_int n){
    u_int digit = 0;
     
    while(n > 0){
        n /= 10;
        ++digit;
    }
     
    return digit;
}
   
int main(){
    u_int a, b;
     
    while(std::cin >> a >> b){
        std::cout << getDigit(a + b) << std::endl;
    }
     
    return 0;
}

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


using namespace std;

int main()
{
	unsigned int a, b;
	string sa,sb;
	while (1)
	{
		if (cin.eof())
			break;
		
		cin >> a >> b;
		
		stringstream ss;
		ss << (a + b);
		cout << ss.str().size() << endl;
	}
	return 0;
}

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

using namespace std;

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

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

int digits(int n){
  int res=0;
  while(n){
    n = n/10;
    res++;
  }
  return res;
}

int main(){
  int x,y;
  while(cin >> x >> y && x != EOF){
    cout << digits(x+y) << endl;
  }
  return 0;
}

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

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>>a>>b){
		k=0,n=a+b;
		while(n>0,++k,n/=10);
		cout<<k<<endl;
	}
	return 0;
}

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

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

#define REP(i,n) for(int i=0;i<n;++i)
#define rep(n) REP(i,n)

int main()
{
	int hills[10];
	rep(10) cin>>hills[i];

	sort( hills, hills+10, greater<int>() );

	rep(3) cout<<hills[i]<<endl;

	return 0;
}

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

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

using namespace std;

int main()
{
	int a, b;

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

	return 0;
}

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

int main()
{
 int a, b;

 while(cin >> a >> b){
  int mas = a + b;
  int n = 0
  while(true){
   n++;
   mas /= 10;

   if(mas == 0) break;
  }
  cout << n << '\n';
 }

 return 0;
}

C++: #include <math.h>
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>


using namespace std;

int main(void)
{
	int a, b;

	while (cin >> a >> b, !cin.eof())
	{
		int sum = to_string(a+b).length();


		cout << sum << endl;
	}

	return 0;
}

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

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

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

	}
	return 0;
}

C++: #include <iostream>

int main(){

  int a[200];
  int b[200];

  int i=0;

  while(std::cin >> a[i]){
    std::cin >> b[i];
    ++i;
  }
  int k;

  for(int j=0;j<i;j++){
    a[j] += b[j];
    k=0;
    do{
      a[j] %= 10;
      ++k;
    }while(a[j]!=0);

    std::cout << k << std::endl;
  }
}

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

using namespace std;
typedef long long ll;
typedef pair<int, int> pint;
#define REP(i, n) for(int i = 0; i < (int)(n); i++)
#define IREP(i, n) for(int i = (int)(n) - 1; i >= 0; i--)
#define ALL(x) (x).begin(), (x).end()
#define MOD 1000000007
#define IMAX INT_MAX
#define IMIN INT_MIN
#define LMAX LLONG_MAX
#define LMIN LLONG_MIN
template<typename T> inline void chmin(T &a, T b){ if(a > b) a = b; }
template<typename T> inline void chmax(T &a, T b){ if(a < b) a = b; }
template<typename T> inline void xch(T &a, T &b){ T w = a; a = b; b = w; }


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

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

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

C++: #include <iostream>

using namespace std;

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

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

int main(){
	while(true){
		int i,j;
		cin>>i;
		cin>>j;
		if(cin.eof())
			break;
		i=i+j;
		cout << (int)log10((float)i)+1<<endl;
	}
	return 0;

}

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
  int a,b;
  while(cin >> a){
	cin >> b;
	int sum = a+b;
	string str;
	str = to_string(sum);
	cout << str.size() << endl;
  }

}

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

int main(){
	int a,b,c;
	int ans;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;
		//-----test-----
		if(a<2500) 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;

vector< int > adj;

int digit(int x)
{
    int ans = 0;
    while(x){ ans++; x/= 10;}
    return ans;
}
int main()
{
    int a, b;
    while(cin>> a >> b){
        cout<< digit(a + b) <<'\n';
    }
}

C++: /**/
//===============================================
#include <iostream>
using namespace std;
int counter=0;
//===============================================
int main()
{
	unsigned int n,i,m;
	for(;cin>>n,cin>>m;)
	{
		for(i=n;i;i=i/10)
		{
			if(i%10 != 0)
				counter++;
		}
		for(i=m;i;i=i/10)
		{
			if(i%10 != 0)
				counter++;
		}
		cout<<counter<<endl;
		counter=0;
	}
	return 0;
}

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

int main(){
  int l[200];
  int m[200];
  
  for(int i=0;i<200;i++){
    if(cin.eof()){break;}
    cin >> l[i];
    cin >> m[i];
  } 
  
  for(int j=0;l[j]!=NULL;j++){
  cout<< (int)log10(l[j]+m[j])+1 << endl;
  }
  return 0;
}

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

int main()
{
   int a,b;

   while(cin >> a >> b)
   {
      cout << a + b << endl;
   }

   return 0;
}

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

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

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

int main() {
    int a, b;
    while (true) {
        cin >> a >> b;
        int sum=a+b;
        int ans=0;
        while (true) {
            sum/=10;
            ans++;
            if (sum<=0) {
                break;
            }
        }
        printf("%d\n",ans);
    }
    return 0;
}

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