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>
#include <cmath>
using namespace std;
 
int main()
{
    int a,b;
    while(cin >> a >> b)
        cout << log10(a+b) + 1; << '\n';
 
    return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <sstream>
using namespace std;
int main()
{

	string str;
	do
	{

		string item;
		vector<string> list;
		getline(cin, str);


		stringstream ss(str);
		while (getline(ss, item, ' ') && !item.empty()) {
			list.push_back(item);
		}
		int sum = stoi(list[0].c_str()) + stoi(list[1].c_str());
		int count = 0;
		for (int i = 10; i <= 1000000; i = i * 10)
		{
			count++;
			if(sum < i)
			{
				cout << count << endl;
				break;
			}


		}
	} while (str != "");
	return 0;
}

C++: /* All men have limits. They learn what they are and learn
   not to exceed them, I ignore mine. -Batman           */

#include <iostream>
//#include	 <Windows.h>
using namespace std;

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

return 0;
}

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

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

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

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

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
	int t=8700;
	for(int i=t;i;i--){
		for(int j=i;j;j--){
			if(i+j==2)a+=b;
		}
	}
	int cnt=0;
	while(a)a/=10,cnt++;
	cout<<cnt<<endl;
	}
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define REP(i,N) for(int i = 0; i < (int)N; i++)

int main(){
	int hako[200][2];
	int i=0;
	while(cin >> hako[i][0] >> hako[i][1]){
		i++;
	}
	REP(j,i){
		int a=0;
		int sum = hako[j][0] + hako[j][1];
		while(sum > 0) sum/10,a++;
		cout << a <<endl;
	}
	return 0;
}

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

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

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

C++: #include <iostream>

int main(){

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

  int i=0;

  while(std::cin >> a[i] >> 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 <stdio.h>
#include <stdlib.h>


int main(void){
	int a,b,x;
	while(scanf("%d %d",&a,&b)!=EOF){
		x=a+b;
		if(x/1000000){
			printf("7\n");
		} else if (x/100000!=0){
			printf("6\n");
		} else if (x/10000!=0){
			printf("5\n");
		} else if (x/1000!=0){
			printf("4\n");
		} else if (x/100!=0){
			printf("3\n");
		} else if (x/10!=0){
			printf("2\n");
		} else {
			printf("1\n");
		}
	}
}

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

// {{{ put
void newline() {cout << endl;}
template <typename T> void display(T input){cout << input;}
template <typename T> void put(T input){display(input); newline();}
// }}}

int digit_num(int n){
  return n >= 10 ? 1 + digit_num(n / 10)
                 : 1;
}

int main() {
  int a, b;
  while(cin >> a){
    cin >> b;
    put(digit_num(a + b));
  }
}

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

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

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

int main() {
  int i;
  int a,b;
  while(scanf("%d %d",&a, &b) != EOF) {
    int c = a+b;
    for(i = 1; i < 9; i++) {
      if(c/(int)pow(10,i) == 0) {
	printf("%d\n",i);
	break;
      }
    }
  }

  return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<string>
int main(){
    string a, b;
    while(cin >> a >> b){
        printf("%d %d\n", a.length(), b.length());
    }
}

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

using namespace std;

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


int main(){

	int a,b;
	int sum = 0;
	cin >> a >> b;

	sum = a + b;
	
	int x = 1;

	while(sum / 10 > 0){
		x++;
		sum = sum / 10;
	}

	cout << x << endl;

	return 0;
}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main(){
	int ab[200][2],f,i=0,a,g,k=0;
	while(cin>>f){
		scanf("%d %d",&ab[i][1],&ab[i][2]);
		i++;
	}
	for(int j=0;j<i;j++){
		a=ab[j][1]+ab[j][2];
		for(g=0;;g++){
			a=a/10;
			k++;
			if(a==0){
				printf("%d\n",k);
				break;
			}
		}
		k=0;
	}
	return 0;
}

C++: #include <stdio.h>int main( void ){
    int l = 0;
do{    int a,b;    scanf( "%d %d",&a,&b );      a = a + b;       int n = 1;      int j = 0;      while( true ){            if( a / n >= 1 ) n *= 10;            else               break;          j++;          }      printf( "%d",j ); }while( l < 200;l++ );    return 0;}

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

using namespace std;

int main()
{
	int a[200], b[200], n, ans=0;
	for (int i = 0; i < 200; i++) 
	{
		cin >> a[i] >> b[i];
		n = a[i] + b[i];
		while (n >= 1) 
		{
			n /= 10;
			ans++;
		}
		cout << ans << endl;
		ans = 0;
	}
}

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

typedef long long ll;

int main(void)
{
    ll a , b;

    while(cin >> a >> b){

        a = a+b;

        b = 0;

        while(a!=0){
            b++;
            a/=10;
        }

        cout << b << endl;
    }

    return 0;

}

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

int main(){
const int INF=10000000;
int a,b,c,ans;
while(cin>>a>>b){
ans=1;
a+=b;
for(int i=0;i<INF;i++){
c=a%10;
a-=c;
if(a==0){break;}
if(a!=0){
ans++;
a/=10;}}
cout<<ans;}}

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


int main(){
    int a, b;

    while (scanf("%d%d", &a, &b) != EOF){
	int c = a + b;
	int digit = 1;
	while (c >= 10){
	    c = c / 10;
	    digit++;
	}
	cout << digit << endl;
    }
}

C++: #include <iostream>
using namespace std;
int main(){
    int a,b,sum=0;
    cin>>a>>b;
    sum=a+b;
    if(sum<10)cout<<"1"<<endl;
    else if(sum<100)cout<<"2"<<endl;
    else if(sum<1000)cout<<"3"<<endl;
    else if(sum<10000)cout<<"4"<<endl;
    else if(sum<100000)cout<<"5"<<endl;
    else if(sum<1000000)cout<<"6"<<endl;
    else if(sum<10000000)cout<<"7"<<endl;
else if(sum<100000000)cout<<"8"<<endl;
return 0;
}