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 <iostream>
using namespace std;

int number_of_digits(int n) {
	int result = 0;
	while (n != 0) {
		result++;
		n /= 10;
	}
	return result;
}

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

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

void digit()
{
    int i = 0;
    int digit[200] = {0};
    long int a, b, sum;
    while(i < 200)
    {
        cin >> a >> b;
        if((a>=0 && a <=1000000) && (b >=0 && b<=1000000))
        {
            sum = a+b;
            while(sum > 0)
            {
                sum = sum/10;
                digit[i] = digit[i]+1;
            }
            i++;
        }
        else
            exit(1);
    }
    for(int i = 0; i < 200; i++)
    {
        cout << digit[i] << endl;
    }



}


int main () {

digit();

return 0;

}

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

using namespace std;

int main(){
  int a,b;
  while(!cin.eof()){
	  cin>>a>>b;
    int c = a+b;
    int ans = 0;
    while(c > 0){
      ans++; c/=10;
    }
    cout << ans << endl;
  }
  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a,b,ans=0,ans1,ans2;
  while(1){
    ans1=0;
    ans2=0;
    cin>>a>>b;
    ans++;
    if(ans>=200){
      break;
    }
    ans1=a+b;
    while(1){
      if(ans1>=10){
	ans2++;
	ans1=ans1/10;
      }
      if(ans1<10){
	cout<<ans2+1<<endl;
	break;
      }
    }
  }
  return(0);
}

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

int main(){
  int a, b;

  while(cin >> a >> b){
    stringstream ss;
    ss << a + b;
    cout << ss.str().size() << endl;
  }
}

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

int main()
{
    int IsB = 0,i = 0;
    char a[100],b[100],*digits;
    while(1){
        char str = '\0';
        scanf("%c",&str);
        if(str == '\0')break;
        if(str == ' '){
            i = 0;
            IsB = 1;
        }else if(str == '\n'){
            sprintf(digits,"%d",atoi(a) + atoi(b));
            printf("%d\n",strlen(digits));
            i = 0;
            IsB = 0;
        }else if(IsB == 0){
            a[i++] = str;
        }else{
            b[i++] = str;
        }
    }
}

C++: #include<iostream>
using namespace std;
class DigitNumber{ 
    public:
        void solve(int a,int b){
            string sum=to_string(a+b);
            if(sum=="0")cout<<0<<endl;
            else cout<<sum.length()<<endl;
        }
};
int main(){
    DigitNumber inst;
    int a,b;
    while(true){ 
        cin>>a>>b;
        inst.solve(a,b);
    }
}

C++: #include <stdio.h>

int main(void)
{
	int a,b;
	int i;
	int count_1=0;
	int count_2 = 0;
	scanf("%d %d",&a,&b);
	
	while(a / 10 >= 1)
	{
		a = a/10;
		count_1++;
	}
	while(b / 10 >= 1)
	{
		b = b/10;
		count_2++;
	}
	printf("%d\n",count_1+count_2+2);
}

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

using namespace std;
int main()
{
    long long a,b;
    while(scanf("%lld %lld",&a,&b)!=EOF)
    {
        cout << floor(log10(a+b))+1 << endl;
    }
    return 0;
}

C++: #include <iostream>

int Count(int value)
{
    int count = 1;
    while (value >= 10) {
        value /= 10;
        count++;
    }
    return count;
}

int main()
{
    int a, b;
    while (std::cin >> a >> b) {
        std::cout << Count(a + b) << std::endl;
    }

    return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <utility>
#include <stack>
#include <queue>
#include <vector>
#include <cmath>

#define pb push_back

using namespace std;

typedef long long ll;

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

        return 0;
}

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

using namespace std;

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

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

int main(){
	int a,b;
	for( int i=0;i<200;i++ ){
		cin>>a>>b;
		if( a<0||b<0||1000000<a||1000000<b)
			break;
		cout<<(int(log10(a+b))+1)<<endl;
	}
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <utility>
#include <ctime>
#define INF 999999999
#define mod 1000000007

#define rep(i,n) for(int i=0;i<int(n);i++)
#define rrep(i,n) for(int i=(n);i>=0;i--)
#define REP(i,a,b) for(int i=(a);i<int(b);i++)
#define all(x) (x).begin(),x.end()
#define pb push_back
#define MOD(x) (x%(mod))
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef pair<int,int> pi;

bool debug=false;
/*---------------------------------------------------*/

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

C++: #include <algorithm>
#include <sstream>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string>
#include <queue>
#include <vector>
using namespace std;

int main()
{
	int x, y, ans;
	while (cin >> x >> y && x != EOF) {
		ans = x + y;
		if (ans < 10) cout << 1 << endl;
		else if (10 <= ans && ans < 100) cout << 2 << endl;
		else if (100 <= ans && ans < 1000) cout << 3 << endl;
		else if (1000 <= ans && ans < 10000) cout << 4 << endl;
		else if (10000 <= ans && ans < 100000) cout << 5 << endl;
		else if (100000 <= ans && ans < 1000000) cout << 6 << endl;
		else cout << 7 << endl;
	}
}

C++: #include<iostream>
#include<string>
#include<algorithm>
#include<functional>
#include<vector>
#include<math.h>
#define L(_i,_N) for(int _i=0;_i<_N;_i++)
typedef long long int lli;
using namespace std;

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

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

int main(){
	int a,b,keta[300] = {0},kcor = 0;
	while(cin >> a){
		cin >> b;
		if(a+b == 0){
			keta[kcor] = 1;
		}
		else{
			keta[kcor] = log10(double(a+b))+1.000001;
		}
		kcor++;
	}
	for(int i = 0;i < kcor;i++){
		cout << keta[i] << endl;
	}
	return 0;
}

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;
    }
}