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 <bits/stdc++.h>
using namespace std;
 
int main() {
  int n1,n2,total;
  while ( cin >> n1 >> n2 ) {
    total = n1 + n2;
    int n = 0;
    while (1) {
      if ( total < 1 ) break;
      total /= 10;
      n++;
    }
    cout << n << endl;
  }
  return 0;
}

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

using namespace std;

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

C++: #include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <sstream>
#include <cmath>
#include <set>
#include <cstdio>

using namespace std;

#define REP(i,n) for(int (i)=0;(i)<(int)(n);(i)++)
#define RREP(i,n) for(int (i)=(int)(n)-1;(i)>=0;(i)--)
#define REMOVE(Itr,n) (Itr).erase(remove((Itr).begin(),(Itr).end(),n),(Itr).end())
#define PB_VEC(Itr1,Itr2) (Itr1).insert((Itr1).end(),(Itr2).begin(),(Itr2).end())
#define UNIQUE(Itr) sort((Itr).begin(),(Itr).end()); (Itr).erase(unique((Itr).begin(),(Itr).end()),(Itr).end())

typedef long long ll;

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

C++: #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define MOD 1000000007 //10^9+7
#define INF 1000000000 //10^9

int main (int argc, const char * argv[])
{
    double a,b;
    while(1){
        cin>>a>>b;
        if (a==0&&b==0) return 0;
        int k=log10(a+b)+1;
        cout<<k;
    }
}

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

C++: #include <iostream>

using namespace std;

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

int main()
{
	solve();
	return(0);
}

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

int main()
{
        string input;
        string hoge;
        string fuga;
        string piyo;
        long first, second;
        int size = 0;
        int i;
        long sum = 0;
        double sep = 0;

        cout << "input two numbers" << endl;
        cin >> input;
        size = input.size();
        i = input.find(" ");
        hoge = input.substr(0,i - 1);
        fuga = input.substr(i + 1);
        first = stoi(hoge);
        second = stoi(fuga);
        sum = first + second;
        piyo = to_string(sum);
        size = piyo.size();
        cout << size << endl;
}
~                                                                                                                                                                                                 
~                                                                                                                                                                                                 
~                                                                                                                                                                                                 
~                                                                                                                                                                                                 
~

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

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

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

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

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

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
    int a,b;
    while(cin>>a>>b)
        cout<<(int)log10(a+b)+1<<endl;
    return 0;
}

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

int main() {
	int a, b;
	cin >> 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 if (a + b < 10000000) cout << "7" << endl;
	else if (a + b < 100000000) cout << "8" << endl;
	else if (a + b < 10000000000) cout << "9" << endl;
return 0;
}

C++: #include<stdio.h>
int main(){
  int a,b,c;
  while(scanf("%d%d",&a,&b)!=EOF){
  	c = a + b;
  	if(c<10) printf("1\n");
  	else if(c<10^2) printf("2\n");
  	else if(c<10^3) printf("3\n");
  	else if(c<10^4) printf("4\n");
  	else if(c<10^5) printf("5\n");
  	else if(c<10^6) printf("6\n");
  	else if(c<10^7) printf("7\n");
  	else break;
  }
  return 0;
}

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

using namespace std;

int main(int argc, char *argv[])
{
    int a,b;
    while(scanf("%d%d",&a,&b) != EOF)
    {
          int x = a+b;
          int count = 0;
          while(x != 0)
          {
                  x = x /10;
                  count ++;
          }
          printf("%d\n",count);
    }

    
    system("PAUSE");
    return EXIT_SUCCESS;
}

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