Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func Sliceconvtoi() []int {
	strs := strings.Split(sc.Text(), " ")

	var ints []int
	var x int

	for _, s := range strs {
		x, _ = strconv.Atoi(s)
		ints = append(ints, x)
	}

	return ints
}

func main() {
	for sc.Scan() {
		i := Sliceconvtoi()
		fmt.Println(int(math.Log10(float64(i[0]+i[1]))) + 1)
	}

}

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

C++: #include<bits/stdc++.h>
using namespace std;
#define mp make_pair
#define fi first
#define se second
#define ll long long
#define pb push_back

# define inOut(a,b) freopen(a,"r",stdin);freopen(b,"w",stdout);
# define RESET(a) memset(a,0,sizeof(a))
# define MEMO(a) memset(a,-1,sizeof(a))
# define DEBUG puts("Debug-Has-Come-Until-Here")


typedef pair<int,int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;

int main(){
	cin.tie(NULL);

	int a,b,hitung;
	while(scanf("%d %d", &a,&b) != EOF){
		hitung = 0;
		a = a+b;
		if (a == 0)hitung = 1;
		while(a >0){
			hitung ++;
			a/=10;
		}
		printf("%d\n", hitung);
	}
	return 0;
}