Go: package main

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

func sliceAtoi(sa []string) ([]int, error) {
	si := make([]int, 0, len(sa))
	for _, a := range sa {
		i, err := strconv.Atoi(a)
		if err != nil {
			return si, err
		}
		si = append(si, i)
	}
	return si, nil
}

func getDigits(ary []int) (digits int) {
	sum := 0
	for _, v := range ary {
		sum += v
	}

	for sum != 0 {
		sum /= 10
		digits++
	}
	return
}

func getsTwoNumAsArray() (nums [][]int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}

		ary, _ := sliceAtoi(strings.Split(str, " "))
		nums = append(nums, ary)
	}

	return
}

func main() {
	ary := getsTwoNumAsArray()

	for _, v := range ary {
		fmt.Println(getDigits(v))
	}
}

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

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