Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	"unicode/utf8"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var strs []string
	var a, b, sum int64
	var digits int
	for scanner.Scan() {
		strs = strings.Split(scanner.Text(), " ")
		a, _ = strconv.ParseInt(strs[0], 10, 64)
		b, _ = strconv.ParseInt(strs[1], 10, 64)

		sum = a + b
		// goでlen(string)はbyte数が返る
		digits = utf8.RuneCountInString(strconv.FormatInt(sum, 10))

		fmt.Printf("%d\n", digits)
	}
}

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

int main()
{
	int a, b, c, su = 1000000, i = 1;
	cin >> a >> b;
		while (a != -1 && b != -1 && i<=200) {
			
			c = a + b;
			if (c == 0) {
				cout << "0" << endl;
			}
			else {
				for (int j = 7; j >= 1; j--) {
					if (c >= su) {
						cout << j << endl;
						su = 1000000;
						break;
					}
					else {
						su /= 10;
					}
				}
			}
			cin >> a >> b;
			i++;
		}

	return 0;
}

C++: #include<cstdio>

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

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

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

int main()
{
	int i,j ;
	while( cin >> i >> j )
	{
		i += j ;
		int count = 0 ;

		while( i > 0 )
		{
			i = i / 10 ;
			count ++ ;
		}

		cout << count << endl ;
	}

	return 0 ;
}

C++: #include <stdio.h>

int main(){

	int a=0,b=0,i=0;

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

C++: #include<stdio.h>
int main()
{
int x,y,cou,w;
cou=0;w=0;
for(int i=0;i<200;i++){
scanf("%d",&x);scanf("%d",&y);
w=x+y;while(1)
{
if(w/10==0){cou++;break;}
else {w=w/10; cou++;}
}
printf("%d\n",cou);
}
return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a;
  int b;
  int k=0;
  scanf("%d%d",&a,&b);
  int c=a+b;
  while(c>0){
  	c=c/10;
  	k=k+1;
  	}
  	cout<<k<<endl;
  	return 0;
  	}

C++: #include <iostream>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main() {
    int a,b,c;
    REP(j,200){
    cin >> a >> b;
    if(!cin)
        return 0;
    c = a+b;
    REP(i,10){
        c/=10;
        if(c==0){
            cout << i+1 << "\n";
            break;
        }
    }
    }
}

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

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

C++: #include<iostream>
#include<string>
#include <algorithm>
#include<iomanip>
#include<cmath>
using std::cin; using std::string;
using std::cout; using std::endl;
using std::sort;
#define rep(X,Y) for(int (X)=0;(X)<(Y);++(X))
#define rept(X,Y,Z) for(int (X)=(Y);(X)<(Z);++(X))
#define repr(X,Y) for(int (X)=(Y);(X)>=0;--(X))
const double pi=3.141592653589793283462;
int main(){
    int a,b,c;
	while(cin>>a>>b){
	int co=1;
	c=a+b;
	while(1){
		if(c/10>=1){
			co+=1;
			c/=10;
		}
		else
			break;
	}
	cout<<co<<endl;
	co=1;
	}
	return 0;
}

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

int main(){
  int a,b;
  while(cin >> a >> b){
    int ans=a+b;
    if(ans>=1000000){
      cout << 7 << endl;
    }else if(ans>=100000){
      cout << 6 << endl;
    }else if(ans>=10000){
      cout << 5 << endl;
    }else if(ans>=1000){
      cout << 4 << endl;
    }else if(ans>=100){
      cout << 3 << endl;
    }else if(ans>=10){
      cout << 2 << endl;
    }else if(ans >=0){
      cout << 1 << endl;
    }
  }
  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
    int a,b,i,s,ten=1;
    while(cin >> a >> b ){
        s=a+b;
        for(i=1;i<8;i++){
            ten=ten*10;
            if(s/ten==0){
                cout << i << endl;
                break;
            }
        }
        ten=1;
    }

return 0;
}

C++: //
//  main.cpp
//  Sample
//
//  Created by h3037183 on 2017/07/31.
//  Copyright ?? 2017??´ ?°????. All rights reserved.
//

#include <iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
    int a,b,e=1;
    while(cin>>a>>b){
        for(int z=10;z<1000000;z=z*10){
        if(a+b>=z){
            e++;
        }
    }
         cout<<e<<endl;
            e=1;
    }
    return 0;
}

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

int main(){

long int a,b,sum = 0;
int cou = 1;

while(cin >> a >> b){
sum = a + b;
	while(sum >= 10){
		sum = sum/10;
		cou++;
	}
	cout << cou << "\n";
	cou = 1;
}
    return 0;
}

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

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

using namespace std;

int main()
{
	int a, b;
	while (~scanf("%d %d", &a, &b))
		printf("%d\n", (int)log10(a + b) + 1);
	return (0);
}

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

int count_digist(int n) {
    int count = 0;
    while(n > 0) {
        n = n / 10;
        count++;
    }
    return count;
}

int main(){
    while(!cin.eof()) {
        int a, b;
        cin >> a >> b;
        int c = a + b;
        int count = count_digist(c);
        cout << count << endl;
    }
    return 0;
}

C++: #include <iostream>
#include <iomanip>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <climits>
#include <cfloat>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <bitset>
#include <algorithm>
#include <functional>
#include <utility>
#include <numeric>

using namespace std;

typedef unsigned int UI;
typedef long long LL;
typedef unsigned long long ULL;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int,int> PII;
typedef istringstream ISS;
typedef ostringstream OSS;

#define REP( i, m, n ) for ( int i = (int)( m ); i < (int)( n ); ++i )
#define EACH( v, c ) for ( auto &v : c )

#define ITER( c ) __typeof( (c).begin() )
#define IREP( c, it ) for ( ITER(c) it = c.begin(); it != c.end(); ++it )
#define ALL( c ) (c).begin(), (c).end()

#define PB( n ) push_back( n )
#define MP( a, b ) make_pair( ( a ), ( b ) )
#define EXIST( c, e ) ( (c).find( e ) != (c).end() )

#define fst first
#define snd second

#define DUMP( x ) cerr << #x << " = " << ( x ) << endl
#define DEBUG( x ) cerr << __FILE__ << ":" << __LINE__ << ": " << #x << " = " << ( x ) << endl

int main()
{
	cin.tie( 0 );
	ios::sync_with_stdio( false );

	int a, b;
	while ( cin >> a >> b )
	{
		int num = a + b;
		cout << (int)log10( num ) + 1 << endl;
	}

	return 0;
}

C++: //
//  main.cpp
//  lianxi
//
//  Created by CYC on 9/25/15.
//  Copyright ? 2015 CYC. All rights reserved.
//

#include <iostream>
#include<math.h>
using namespace std;


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

C++: #include<cstdio>
using namespace std;
int main()
{
   int n,m,ans,sum;
   while(scanf("%d%d",&n,&m)!=EOF)
   {
       ans=0,sum=n+m;
       while(sum)
       {
           ans++;
           sum/=10;
       }
       if(!ans)ans++;
       printf("%d\n",ans);
   }
}