Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int
		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}
		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

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

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

C++: #include<stdio.h>
int main()
{
	int a,b,sum;
	int m=200;
	loop:scanf("%d,%d",&a,&b);
	if((a>=0&&a<=1000000)&&(b>=0&&b<=1000000))
	{
		sum=a+b;
	}
	
	if(sum>999999)
		printf("7");
	else if(sum>99999)
		printf("6");
	else if(sum>9999)
		printf("5");
	else if(sum>999)
		printf("4");
	else if(sum>99)
		printf("3");
	else if(sum>9)
		printf("2");
	else
		printf("1");
		printf("\n");
		m--;
		if(m!=0)
	goto loop;
	return 0;
}

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

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

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

using namespace std;

int main(void){

 int a,b;
 int ans;

 while(1){
  cin >> a >> b;
  ans=log10(a+b)+1;

  cout << ans << endl;
 }
}

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

int digit(int num){
	if((num / 10) > 0 ) return (digit(num/10))+1;
	else return 1;
}

int main(){
	int num1,num2,result=0;
	while(fscanf(stdin,"%d %d",&num1,&num2) != EOF){
		result = digit(num1+num2);
		printf("%d",result);
	}
	return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;
int main() {
  int a, b;
  // cin returns 0 when input is invalid
  while (cin >> a >> b) {
    cout << log10(a+b) << endl;
  }
  return 0;
}

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

int main() {
  int a, b;
  cin >> a >> b;
  int count = 0;
  unsigned int ans = a + b;
  
  while (ans > 0) {
    count++;
    ans /= 10;
  }

  // cout << a << "," << b << "," << count << endl;
  cout << count << endl;
  return 0;
}