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 <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<stdio.h>
int main(void)
{
	int i,a,x,b,c;
	while((scanf("%d%d",&a,&b))!=EOF){
		c=0;
		x=a+b;
		while(x!=0){
			x=x/10;
			c++;
		}
		printf("%d\n",c);
	}
}

C++: #include<iostream>

using namespace std;

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

C++: #include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

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

C++: 
//http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp

#include <algorithm>
#include <iostream>
#include <vector>

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

using namespace std;

//テ」ツδ榲」ツつッテ」ツδュテ・ツョツ堙ァツセツゥ
#define ALL(v) (v).begin(),(v).end()
#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0]))
#define REP(i,a,b) for(int i=(int)(a); i<(int)(b); ++i)
#define rep(i,n) for(int i=0;i<(int)(n);++i)
#define SORT(x) sort(begin(x),end(x))
#define SELECT_SORT(x, n) sort(begin(x),begin(x)+n)
#define SWAP(type, a, b) do {type tmp = a; a = b; b = tmp;} while (0)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))

//テ・ツョツ堙ヲツ閉ー
#define INF 2000000000000
#define MAX 10

//DEBUGテァツ板ィ
#define BAR() cout << "----------------------------" << endl;
#define DUMP(v) (cerr << #v << ": " << v << endl)
#define PRINT(list) cout << "{ "; for(auto nth : list){ cout << nth << " "; } cout << "}" << endl;


int main()
{
	int a=0;
	int b=0;
	while(cin >> a >> b)
	{
		int total = a + b;
		
		int i;
		if(total == 0){
			cout << i << endl;
		}else{
			for(i = 0; total != 0; i++){ total /= 10; }
			cout << i << endl;
		}
	}
	
}

C++: #include <iostream>

using namespace std;

int main()
{
	int a, b;

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

C++: #include<iostream>
using namespace std;
int main()
{
	while (true)
	{
		int a, b;
		cin >> a >> b;
		if (cin.fail())
			break;
		int cnt = 0;
		int x = a + b;
		do {
			x /= 10;
			cnt++;
		} while (x);
		cout << cnt << endl;
	}
}

C++: #include <iostream>
using namespace std;
int main( void )
{
  int x,y,z;
  while( 1 ){
    cin >> x >> y;
    if( cin.eof() ) break;
    x += y;
    z = 0;
    if( x == 0 ) z = 1;
    while( x > 0 ){
      z++;
      x /= 10;
    }
    cout << z << endl;
  }
  return 0;
}

C++: #include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	long long int a = 0;
	long long int b = 0;
	while (cin >> a, cin >> b)
	{
		long long int c = a + b;
		int d = 1;
		while (c >= 10)
		{
			c /= 10;
			d++;
		}
		cout << d << 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;
	}
}

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

using namespace std;

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

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

string sum(string s, string t){
    reverse(s.begin(), s.end());
    reverse(t.begin(), t.end());
    
    string res;
    int carry = 0;
    int md = max(t.size(), s.size());
    for(int i=0; i<=md; i++){
        int sc = i<s.size()? s[i]-'0': 0;
        int tc = i<t.size()? t[i]-'0': 0;
        int d = sc + tc + carry;
        char nd = '0' + (d%10);
        if(i == md && nd == '0')
            continue;
        res += nd;
        carry = d/10;
    }
    reverse(res.begin(), res.end());
    return res;
}

int main(){
    string s, t;
    while(cin >> s >> t){
        cout << sum(s, t).size() << endl;
    }
    return 0;
}

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

using namespace std;

int main(void) {
	int n, m, sum;
	vector<int> v;

	while (cin >> n >> m){
		int digit = 1;
		sum = n + m;
		while (sum /= 10) {
			digit++;
		}
		v.push_back(digit);
	}

	for (int i = 0; i < v.size(); i++) {
		cout << v[i] << endl;
	}

	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  while(cin>>a>>b){
    int n =a+b;
    int cnt=0;
    while(n){
      n/=10;
      cnt++;
    }
    cout<<cnt<<endl;
  }
  return 0;
}

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

}
return 0;
}

C++: //============================================================================
// Name        : 0002.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
using namespace std;

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

C++: #include <stdio.h>

int main(){

	int a=0,b=0,x=0;

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

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


int main(){
    long a, b, sum,r,count=0;

    while(scanf("%d %d",&a,&b)!=EOF){
        sum=a+b;
        //printf("%d\n",sum);

        while(sum){
            r=sum%10;
            count++;
            sum=sum/10;
        }
        printf("%d\n",count);
    }



return 0;
}

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

int main(){

	int a[100];
	int b[100];
	int i = 0;
	int N;

	while(1){
		cin >> a[i];
		cin >> b[i];

		if (a[i]==EOF) break;
		i++;
	}
	N = i;
	i = 0;
	
	int j=1;
	int ans=0;

	for(i;i<=N;i++){
		while(1){
			if((((a[i]+b[i]) / j))!=0){
				ans++;
			}
			else break;

			j = j * 10;
		}
		cout << ans << endl;
		ans = 0;
		j = 1;
	}

}

C++: #include<iostream>

using namespace std;

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

C++: #include	<iostream>

using namespace std;

int main(void) {
	while(1) {
		int a, b;
		int sum = 0, g = 1;
		
		cin >> a;
		if( cin.eof() )	{ break; }
		
		cin >> b;
		sum += a + b;
		
		while(sum >= 10) {
			g++;
			sum /= 10;
		}
		cout << g << 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;
}