Go: package main

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

func main() {
	sc := bufio.NewScanner(os.Stdin)
	for sc.Scan() {
		str := strings.Split(sc.Text(), " ")
		if len(str) != 2 {
			return
		}
		a, err1 := strconv.ParseInt(str[0], 10, 64)
		b, err2 := strconv.ParseInt(str[1], 10, 64)
		if err1 != nil || err2 != nil {
			return
		}
		a += b
		for b = 0; a > 0; a /= 10 {
			b++
		}
		fmt.Println(b)
	}
}

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

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

int main(void){
  long a,b;
  int n;
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> a >> b;
    long s = a + b;
    int ans = 1;
    while(s > 0){
      s/=10;
      if(s > 0){
        ans++;
      }
    }

    cout << ans << endl;
  }
  return 0;
}

C++: #include<iostream>
 
  
using namespace std;
  
int main()
{
     unsigned int a,b,c,ans=0;//initializing numbers
    while(cin >> b >>c )//entering 2 numbers
    {
    a=b+c;//adding the 2 numbers
    while(a!=0)
    { 
        a/=10; ans++;//dividing sum by 10 then adding ans by 1 for number of digits
 
    }
        cout << ans << endl;//print out how many digits
        ans = 0;
     }
 
   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()
{
    int a, b;
    cin >> a >> b;
    a += b;
    int ret = 0;
    while(a > 0){
        a /= 10;
        ++ ret;
    }
    cout << ret << endl;
}

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

using namespace std;

int main() {
  int a, b;

  while (cin >> a >> b) {
    a += b;
    int dig_num = 1;
    while ((a /= 10) != 0) {
      ++dig_num;
    }
    cout << dig_num << "\n";
  }
}

C++: #include <iostream>

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

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

int main(void){
  long a,b;
  
  cin >> a >> b;
  long s = a + b;
  int ans = 1;
  while(s > 0){
    s/=10;
    if(s > 0){
      ans++;
    }
  }

  cout << ans << endl;
  return 0;
}