Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	//sc.Split(bufio.ScanWords)
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		n1, _ := strconv.Atoi(s[0])
		n2, _ := strconv.Atoi(s[1])
		fmt.Printf("%d\n", len(strconv.Itoa(n1+n2)))
	}
}

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

//using namespace--------------------------------------------------------------------------------------------------------------
using namespace std;

//define-----------------------------------------------------------------------------------------------------------------------
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define FOR(i, s, n) for(int i = s; i < (int)n; i++)
#define per(i, n) for(int i = n; i >= 0; i--)
#define ROF(i, s, n) for(int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i)
#define SZ(a) int((a).size())
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define INF 1 << 25
#define CLR(a) memset((a), 0 ,sizeof(a))
#define dump(x) cerr << #x << " = " << (x) << "\n";
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n";
#define sq(n) (n) * (n)

//typedef----------------------------------------------------------------------------------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef unsigned int uint;
typedef unsigned long long ull;

//const------------------------------------------------------------------------------------------------------------------------
const double EPS = 1e-10;
const double PI = acos( -1.0 );

//global-----------------------------------------------------------------------------------------------------------------------
int a, b;

//function---------------------------------------------------------------------------------------------------------------------
int main() {
	while ( scanf( "%d %d", &a, &b ) != EOF ) {
		a += b;
		int ans = 0;
		while ( true ) {
			if ( a / 10 == 0 && a % 10 == 0 ) {
				break;
			}
			ans++;
			a /= 10;
		}
		printf( "%d\n", ans );
	}
	return 0;
}

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

using namespace std;

int main()
{
    int a,b,count=0,sum=0;
    while(scanf("%d%d",&a,&b)!=EOF){
        sum=a+b;
        while(sum!=0){
            sum=sum/10;
            count++;
        }
        printf("%d",count);
    }
    return 0;
}

C++: #include<iostream>
#include<bits/stdc++.h>
#include<cmath>
using namespace std; 
int main() 
{ 
long long int a,b,count=0; 
while(cin>>a>>b) 
{
count=log10(a+b)+1; 
cout<<count<<endl;
}
return 0; 
}

C++: #include<stdio.h>

using namespace std;

int addf(int a,int b)
{
    int c;
    c=a+b;
    return c;
}

int digitcountf(int n)
{   int x,count= 0;

    while(n>0)
    {
    x=n%10;
    count++;
    n=n/10;
    }
    return count;
 }

int main ()
{
    long long int n,m,a,d;
    while (scanf("%lld %lld",&n,&m)==2)
    {
        a = addf(n,m);
        d = digitcountf(a);
        printf("%lld\n",d);

    }




return 0;
}

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

int main()
{
	int a, b, d, s;
	while(cin >> a >> b) {
		d = 0;
		s = a + b;
		while(s && ++d) s /= 10;
		cout << d << '\n';
	}
}

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

using namespace std;

int main() {

	int a, b, c, count = 0;;

	cin >> a >> b;

	c = a + b;

	while (c) {
		c = c / 10;
		count++;
	}

	cout << count << endl;

	return 0;

}

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

int main(){
	int a,b,c;
	int ans;
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<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>
using namespace std;

int getDigit(int in)
{
  if (in == 0) return 0;
  int ret = 1;

  while (in /= 10) ret++;

  return ret;
}

int main(void)
{
  int a, b;

  while (cin >> a) {
    cin >> b;

    cout << getDigit(a + b) << endl;
  }

  return 0;
}

C++: #include <iostream>
#include<vector>
#include<stdlib.h>
#include<algorithm>
#include<string>
using namespace std;



int main(void){

	int a, b,sum=0,count;

	for (;cin;){//??°????????????????????°?????????
		count = 0;
		cin >> a >> b;
		sum = a + b;
		if (sum == 0){ cout << 0 << endl; }
		else if (sum != 0){

			while (sum > 9){

				sum /= 10;
				count++;

			}
			//?????°???count?????°
			cout << count + 1 << endl;
		}
	}


	return 0;
}

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

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int x,y;
    for(;;){
        cin >> x >> y;
        if(cin.eof())   break;
        cout << to_string(x+y).length() << "\n";
    }
}
template < typename T > std::string to_string( const T& n ){
    std::ostringstream stm ;
    stm << n ;
    return stm.str() ;
}

C++: c[];main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d",sprintf(c,"%d",a+b)));}

C++: #include<stdio.h>
int main(void)
{
    int a,b,i,k;
	for(k=0;k<200;k++){
		scanf("%d %d",&a,&b);
		a=a+b;
		for(i=1;i<8;i++){
			if(a<10) break;
			a=a/10;
		}
		printf("%d\n",i);
	}
	return 0;
}

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

int main(){
  int a,b;
  int an[1000];
  int con[1000];
  int i=0,j,k;

  while(cin>>a>>b){
    an[i] =a + b;
    con[i] = 1;
    while(an[i]>=10){
      an[i] /= 10;
      con[i]++;
    }
    i++;
      }
  for(j=0;j<i;j++){
    cout<<con[j]<<endl;
  }

  return 0;

}

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

using namespace std;

int main()
{
    int a;
    int b;
    int c;

    cin >> a;
    cin >> b;

    c = ceil (log10(a+b));

    cout << c << " digit" <<endl;



    return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int a,b,s;
	while(scanf("%d %d",&a,&b)!=EOF){
	s=a+b;
	if(s<10){
		printf("1\n");
	}
	else if(s>9&&s<100){
		printf("2\n");
	}
	else if(s>99&&s<1000){
		printf("3\n");
	}
	else if(s>999&&s<10000){
		printf("4\n");
	}
	else if(s>9999&&s<100000){
		printf("5\n");
	}
	else if(s>99999&&s<1000000){
		printf("6\n");
	}
	else if(s>999999){
		printf("7\n");
	}
	}
	return 0;
}

C++: #include <iostream>
#include <string>
#include <sstream>

int main() {
	int i=0, j=0;
	while( std::cin >> i >> j ) {
		std::stringstream ss;
		ss << ( i + j );
		std::cout << ss.str().size() << std::endl;
	}
}

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

int main()
{
    int a, b;
    while (cin >> a >> b)
    {
        string s = to_string(a + b);
        cout << s.length() << endl;
    }
    return 0;
}

C++: #include <cstdio>

using namespace std;

size_t num_digits(int n) {
    size_t k=1;
    while (n /= 10) ++k;

    return k;
}

int main() {
    while (true) {
        int a, b;
        if (scanf("%d %d", &a, &b) == EOF)
            break;

        printf("%zu\n", num_digits(a+b));
    }

    return 0;
}