Go: package main

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

func sliceAtoi(sa []string) ([]int, error) {
	si := make([]int, 0, len(sa))
	for _, a := range sa {
		i, err := strconv.Atoi(a)
		if err != nil {
			return si, err
		}
		si = append(si, i)
	}
	return si, nil
}

func getDigits(ary []int) (digits int) {
	sum := 0
	for _, v := range ary {
		sum += v
	}

	for sum != 0 {
		sum /= 10
		digits++
	}
	return
}

func getsTwoNumAsArray() (nums [][]int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}

		ary, _ := sliceAtoi(strings.Split(str, " "))
		nums = append(nums, ary)
	}

	return
}

func main() {
	ary := getsTwoNumAsArray()

	for _, v := range ary {
		fmt.Println(getDigits(v))
	}
}

C++: //-------------
//include
//-------------
#include <map>
#include <list>
#include <cmath>
#include <vector>
#include <string>
#include <cctype>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;
//-------------
//typedef
//-------------
typedef long long LL;
typedef  vector<int> VI;
typedef  string STR;
typedef  pair<int, int> PII;
typedef  vector<int, int> VII;
typedef  map<string, int> MSI;
//-------------
//utillty
//-------------
#define ALL(a)  (a).begin(),(a).end()
#define MK make_pair
#define PB push_back
#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 COUT(a) cout<<a<<endl
//-------------
//repetition
//-------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
//-------------
//debug
//-------------
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define dumpl(c) REP(i,SZ(c))cerr<<#c<<i<<"="<<(c[i])<<endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

const int MOD = 1000000007;
int main()
{
	int a, b;
	while (cin >> a>> b)
	{
		COUT(a+b);
	}
#ifdef _DEBUG
	while(1);
#endif // _DEBUG

	return 0;
}

C++: #include <iostream>

int main(){
  int a, b, c;
  int i = 10;
  int num = 1;
  
  std::cin >> a;
  std::cin >> b;
  
  c = a + b;
  while(1){
    if(c/i!=0){
      num++;
      i *= 10;
    }else{
      break;
    }
  }
  std::cout << num << std::endl;
  
  return 0;
}

C++: #include <iostream>
using namespace std;
int main() {
  int a, b, sum;
  while(cin >> a >> b) {
    int count=0;
    sum = a+b;
    for(int i=10; ; i*=10) {
      count++;
      if(sum%i==sum) break;
    }
    cout << count << endl;
  }
  return 0;
}

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

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

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main(){
	int a = 0, b = 0;
	int v;
	int i = 0;
	while (scanf_s("%d %d",&a,&b)!= EOF){
		int c = 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{
			cout << "7" << endl;
		}
	}
	return 0;
}

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

int main(void){
	
	int a[200], b[200], i;
	string str = "";
	ostringstream ostr;
	
	for(i=0; (cin >> a[i]) != NULL; i++){
		cin >> b[i];
	}
		
	for(i=0; a[i] != '\0'; i++){
	  ostr << a[i] + b[i];
		str = ostr.str();
		cout << str.length() << endl;
	}

	return 0;
}

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

using namespace std;

int main(){
  int a,b,ans;
  while(scanf("%d %d",&a,&b)!=EOF){

ans =  log10(a+b)+1;

 cout << ans << endl;
  }
  return 0;
}

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

//using namespace--------------------------------------------------------------------------------------------------------------
using namespace std;

//define-----------------------------------------------------------------------------------------------------------------------
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define FOR(i, s, n) for(int i = s; i < (int)n; i++)
#define per(i, n) for(int i = n; i >= 0; i--)
#define ROF(i, s, n) for(int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i)
#define SZ(a) int((a).size())
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define INF 1 << 25
#define CLR(a) memset((a), 0 ,sizeof(a))
#define dump(x) cerr << #x << " = " << (x) << "\n";
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n";
#define sq(n) (n) * (n)

//typedef----------------------------------------------------------------------------------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef unsigned int uint;
typedef unsigned long long ull;

//const------------------------------------------------------------------------------------------------------------------------
const double EPS = 1e-10;
const double PI = acos( -1.0 );

//global-----------------------------------------------------------------------------------------------------------------------
int a, b;

//function---------------------------------------------------------------------------------------------------------------------
int main() {
	while ( scanf( "%d %d", &a, &b ) != EOF ) {
		a += b;
		int ans = 0;
		while ( true ) {
			if ( a / 10 == 0 && a % 10 == 0 ) {
				break;
			}
			ans++;
			a /= 10;
		}
		printf( "%d\n", ans );
	}
	return 0;
}

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

using namespace std;

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

C++: #include<iostream>
#include<bits/stdc++.h>
#include<cmath>
using namespace std; 
int main() 
{ 
long long int a,b,count=0; 
while(cin>>a>>b) 
{
count=log10(a+b)+1; 
cout<<count<<endl;
}
return 0; 
}

C++: #include<stdio.h>

using namespace std;

int addf(int a,int b)
{
    int c;
    c=a+b;
    return c;
}

int digitcountf(int n)
{   int x,count= 0;

    while(n>0)
    {
    x=n%10;
    count++;
    n=n/10;
    }
    return count;
 }

int main ()
{
    long long int n,m,a,d;
    while (scanf("%lld %lld",&n,&m)==2)
    {
        a = addf(n,m);
        d = digitcountf(a);
        printf("%lld\n",d);

    }




return 0;
}

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

int main()
{
	int a, b, d, s;
	while(cin >> a >> b) {
		d = 0;
		s = a + b;
		while(s && ++d) s /= 10;
		cout << d << '\n';
	}
}

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

using namespace std;

int main() {

	int a, b, c, count = 0;;

	cin >> a >> b;

	c = a + b;

	while (c) {
		c = c / 10;
		count++;
	}

	cout << count << endl;

	return 0;

}

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

int main(){
	int a,b,c;
	int ans;
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

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