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++: #pragma GCC optimize "O3"
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#define whole(f,x,...) ([&](decltype((x)) whole) { return (f)(begin(whole), end(whole), ## __VA_ARGS__); })(x)
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define REP_FROM(i,m,n) for (int i = (m); (i) < int(n); ++(i))
#define REP_REV(i,n) for (int i = (n)-1; (i) >= 0; --(i))
#define REP_FROMREV(i,m,n) for (int i = (n)-1; (i) >= int(m); --(i))
#define CLR(a) memset((a), 0 ,sizeof(a))
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
#ifndef LOCAL
#define cerr if (false) cerr
#endif
using namespace std;
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
template<class T> inline T sqr(T x) {return x*x;}
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;

template <class T> inline void setmax(T & a, T const & b) { a = max(a, b); }
template <class T> inline void setmin(T & a, T const & b) { a = min(a, b); }
template <class T> T sq(T x) { return x * x; }
template <class T> T clamp(T a, T l, T r) { return min(max(a, l), r); } // [l, r]
const double EPS = 1e-10;
const double PI  = acos(-1.0);

int getDigit(int num) {
	int cnt = 0;
	while(num > 0) {
		num /= 10;
		cnt++;
	}
	return cnt;
}

int main(int argc, char *argv[]) {
	// Something to do
	int a, b;

	while(scanf("%d %d", &a, &b) != EOF)
		cout << getDigit(a+b) << endl;

	return 0;
}

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

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

int main(){
    int a,b,c,i;
	for(int j=0;j<200;j++){
		cin >> a >> b;
		if(a<0 || b<0)break;
		c = a+b;
		for(i=1;true;i++){
			c = c/10;
			if(c==0)break;
		}
		cout << i << endl;
	}

    
    return 0;
}

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

int main(){
  int a, b, c;
  int i;
  int num;
  
  while(scanf("%d", &a)!=EOF){
    scanf("%d", &b);
    
    i = 10;
    num = 1;
    c = a + b;
    while(1){
      if(c/i!=0){
        num++;
        i *= 10;
      }else{
        break;
      }
    }
    std::cout << num << std::endl;
  }
  
  return 0;
  
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a, b;
  while(cin >> a >> b){
      int sum = a + b;
      int digit = 0;
      while(sum != 0){
        sum /= 10;
        digit++;
      }
      cout << digit << "\n";
  }

  return 0;
}

C++: #include<stdio.h>

int main(){
  int a, b;
  while(scanf("%d %d", &a, &b) != EOF){
    int i=0;
    int c=a+b;
    while(c != 0){
      i++;
      c = c / 10;
    }
    printf("%d\n", i);
  }
  return 0;
}

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

int main(){
  int tmp,tmp2;
  cin >> tmp >> tmp2;
  tmp += tmp2;
  
  cout << to_string(tmp).length << endl;
  return 0;

}

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

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

int main(){
	
	int a, b, sum;
	sum = a + b;
	int x[114514];
	int n = 0;
	
	
	while(cin >> a >> b){
		
		sum = a + b;
		int z = 0;
		
		while(sum != 0){
			sum = sum / 10;
			z++;
			
		}
		
		x[n] = z;
		n++;	
			
	}
	
	for(int c=0; c<n; c++){
		cout << x[c] << endl;
	}
	
	
	

	return 0;
	
}

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

int main() {
	long long int a, b;
	int p=1;
	long long int c=10;
	
	while(cin>>a>>b) {
		p=1;
		c=10;
		while(c<=a+b) {
			p++;
			c*=10;
		}

		cout<<p<<endl;
	}
}

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

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

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

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

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

using namespace std;

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

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

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

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<1173) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <cstdio>
int main()
{
        int a,b,c;
        while(scanf("%d",&a)!=EOF)
        {
                scanf(" %d",&b);
                c=a+b;
                int cnt,i;
                i=1;
                for(cnt=0;;cnt++)
                {       
                        if(c/i==0)break;
                        i=i*10;
                }
                printf("%d\n",cnt);
        }
         
        return 0;
}

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

int main()
{

	int i, num1, num2, total=0, digit, result=0;
	
	cout << "Enter an integer : " << endl;
	cin >> num1 >> num2;;
	
	total = num1 + num2;
	
	while(total>0)
	{
	digit = total/10;
	total /= 10;
	result++;	
	};
	
	cout << result << endl;

		
	return 0;
	
	}

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

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

C++: #include <iostream>
#include <math.h>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
int kaijo(int n){
	int ans = 1;
	if (n != 0){
		for (int i = 0; i < n; i++){
			ans *= (n - i);
		}
	}
	else{
		ans = 1;
	}
	return ans;
}

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