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>
using namespace std;
int main(void){
  long a, b, sum, count;
  
  while(true) {
    cin >> a >> b;
    
    count = 0;
    sum = a + b;
    if (sum == 0) {
      count++;
    } else {
      while(sum != 0) {
        sum /= 10;
        count++;
      }
    }
    cout << count << endl;
    
    if ( cin.eof() ) { break; }
  }
}

C++: #include <iostream>

using namespace std;

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

C++: #include<cstdio>
#include<string>
int main(){
int i;
for(i=0;i<3;i++){
  int a, b;
scanf("%d%d", &a, &b);
a+=b;
std::string c=std::to_string(a);
printf("%d\n", c.length());
}
}

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

int main()
{
	int a,b,sum;
	int count = 1;
	
	cin >> a >> b;

	sum = a + b;

	sum = sum / 10;

	while(sum > 1){

		sum = sum / 10;
		count++;
	}

	cout << count << endl;

	

	return 0;
}

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

int main(){

	int a;
	int b;

	while(1){
		cin >> a >> b;
		a += b;
		b = 0;
		while(1){
			a /= 10;
			++b;
			if(a <= 0){
				break;
			}
		}
		cout << b << endl;
	}
	return 0;
}

C++: #include <cstdio>
#include <cmath>
int main() {
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF) {
		printf("%d\n",(int)log10((double)a+b)+1);
	}
}

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

using namespace std;

int main() {
        int a, b;
        while(cin>>a>>b) {
                int c=a+b;
                for(int i=1; i<=8; i++) {
                        int power = pow(10, i);
                        if(c/power==0) {
                                cout << i << endl;
                                break;
                        }
                }
        }
        return 0;
}

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

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

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

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

C++: #include<cstdio>
#include<cctype>
using namespace std;

int main(){
	long long int a,b;
	int ans;
	while(scanf("%lld %lld",&a,&b)!=EOF){
		a+=b;
		ans=0;
		while(a>0){
			a=a/10;
			ans++;
		}
		printf("%d\n",ans);
	}
	return 0;
}

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

int main(){
    int a,b;
    cin >> a >> b;
    int sum = a + b;
    string str = to_string(sum);
    cout << str.length()<<endl;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555545";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

int main(){
	int a, b;
	while(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;
	}
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="776755";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include<stdio.h>
int main(){
	int ab[200][2],f;
	while(cin>>f){
		scanf("%d %d",&ab[i][1],&ab[i][2]);
	}
}

C++: #include<iostream>
#include<stdlib.h>

using namespace std;

void get_digit(int a,int b){
  int sum = a+b;
  int digit=0;

  if(sum != 0){
    digit++;
  }
  while(sum != 0){
    sum /= 10;
    digit++;
  }

  cout << digit << "\n";
}

int main(){
  int i=0;
  int input=-1;
  int a=-1,b=-1;

  while(cin >> input ){
    if(i == 0){
      get_digit(a,b);
      a = -1;
      b= -1;
    }
    i++;
    if(i == 1){
      a = input;
    }else if(i == 2){
      b = input;
      i=0;
    }
  }

  return 0;
}

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

#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i, c) for (typeof((c).begin()) i = (c).begin(); i != (c).end(); ++i)
#define EXIST(s, e) ((s).find(e) != (s).end())
#define SORTASC(c) sort((c).begin(), (c).end())
#define SORTDESC(c, t) sort((c).begin(), (c).end(), std::greater<t>());
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define dump(x) cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" \
                      << " " << __FILE__ << endl;

const double PI = acos(-1.0);

using ll = long long;
using namespace std;

int main()
{
    ll a, b;
    vector<ll> h;

    while(cin >> a >> b){
        auto tmp = a + b;
        cout << to_string(tmp).length() << endl;
    }
    
    return 0;
}

C++: #include <cstdio>

using namespace std;

int main() {
	long a, b;
	
	while (scanf("%d %d", &a, &b) != EOF) printf("%d\n", a + b);
	
	return 0;
}

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