Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func Sliceconvtoi() []int {
	strs := strings.Split(sc.Text(), " ")

	var ints []int
	var x int

	for _, s := range strs {
		x, _ = strconv.Atoi(s)
		ints = append(ints, x)
	}

	return ints
}

func main() {
	for sc.Scan() {
		i := Sliceconvtoi()
		fmt.Println(int(math.Log10(float64(i[0]+i[1]))) + 1)
	}

}

C++: //-------------
//include
//-------------
#include <map>
#include <list>
#include <cmath>
#include <vector>
#include <string>
#include <cctype>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;
//-------------
//typedef
//-------------
typedef long long LL;
typedef  vector<int> VI;
typedef  pair<int, int> PII;
typedef  vector<int, int> VII;
typedef  map<string, int> MSI;
//-------------
//utillty
//-------------
#define ALL(a)  (a).begin(),(a).end()
#define MK make_pair
#define PB push_back
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define COUT(a) cout<<a<<endl
//-------------
//repetition
//-------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
//-------------
//debug
//-------------
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define dumpl(c) REP(i,SZ(c))cerr<<#c<<i<<"="<<(c[i])<<endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

const int MOD = 1000000007;
int main()
{
	int a, b,c;
	while (cin >> a>>c >> b)
	{
		COUT(to_string(a + b).length());
	}
#ifdef _DEBUG
	while(1);
#endif // _DEBUG

	return 0;
}

C++: #include <stdio.h>
#include<iostream>
#include<math.h>
int uncoo(int n){
 return (int)(logf((float)n)/logf(10.0))+1;
}
int main(){
	using namespace std;
	int unco[200],temp,i;
	for(i=0;i<200;i++){
		if(cin.eof())break;
		cin>>unco[i];
		cin>>temp;
		unco[i]+=temp;
	}
	for(int j=0;j<=i;j++){
		cout<<uncoo(unco[j])<<endl;
	}
	return 0;
}

C++: #include <iostream>

int main(int argc, char **argv) {
	int a, b, sum, digit;
	
	while(std::cin) {
		std::cin >> a >> b;
		sum = a + b;
		
		digit = 0;
		while(sum != 0) {
			sum /= 10;
			digit += 1;
		}
		std::cout << digit << std::endl;
	}
}

C++: #include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

template<class T> inline string toString(T x) { ostringstream sout; sout << x; return sout.str(); }
using namespace std;
int main()
{
	int a, b;
	while (cin>>a>>b)
	{
		cout << to_string(a+b).length() << endl;
	}
	return 0;

}

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

int main(){
	int a,b,i,sum=1;
	
	while(scanf("%d",&a) != EOF){
		cin>>b;	
		a=a+b;
		while(a>10){
			a=a%10;
			sum++;
		}
		cout<<sum<<endl;
		sum=1;
		cin>>a;
	}
    return 0;
}

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

int main(){
int a,b;
while(std::cin >> a >> b){
std::cout << log10(a+b)+1<< std::endl;
}
return 0;
}

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


int main(){
	int a,b,c,d,i;
	
	while(1){
		cin >> a >> b ;

		/*if((a >= 0) && (a <= 1000000)){
			if((b >= 0) && (b <= 1000000))
				break ;
		}*/

		if(cin.eof() )
			break ;
		

		c = a + b ;

		for(i=1;i<7;i++){
			c = c / 10 ;
			if(c == 0) break;

		}

		cout << i << endl ;

		
	}
	
    return 0;
}

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

int main(){

	int a[2];
	cin >> a[0] >> a[1];
	int check=a[0]+a[1],retval=1;
	while(check>=10){
		check/=10;
		retval++;
	}
	cout << retval << endl;

    return 0;
}

C++: #include<cstdio>

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

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

using namespace std;

int counts(string num) {
	int count = 0;
	for (int i = 0; i < size(num); i++) {
		if (num[i] != "0") count++;
	}
	return count;
}

int main() {
	for (int a, b; cin >> a >> b && a && b) {
		string stream as;
		as << a;
		string stream bs;
		bs << b;
		cout << counts(as)+counts(bs) << endl;
	}
}

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

void listen_nums(int &a,int &b);

int calc_digit(const int num);

int main()
{
	int a,b;
	
	for(;1;)
	{
		listen_nums(a,b);
		int sum=a+b;
		std::cout<<calc_digit(sum)<<std::endl;
	}
	
	return 0;
}

void listen_nums(int &a,int &b)
{
	using namespace std;
	cin>>a>>b;
}

int calc_digit(const int num)
{
	return (int)log10((double)num)+1;
}

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

int main()
{
	int nA = 0, nB = 0;
	while (cin >> nA >> nB)
	{
		string strOut;
		int nSum = nA + nB;
		strOut = to_string(nSum);
		cout << strOut.size() << endl;
	}
	return 0;
}

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

int a,b;

int main() {
  while (dainyuu() != EOF) {
    int i;
    a = a + b;
    while(a > 0) {
      a = a / 10;
      ++i;
    }
    
    cout << i << endl;
    
  }
}

void dainyuu() {
  cin >> a >> b;
}

C++: #include<stdio.h>
int main(void)
{
	int dec1,dec2,sum,keta=0;
	scanf("%d %d",&dec1,&dec2);
	sum=dec1+dec2;
	while(sum>10){
		sum=sum/10;
		keta++;
	}
	printf("%d\n",keta);
	return 0;
}

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

int main(){
	int a[400]={0};
	int i=0,n=0,s=0,d=0;
	while(cin>>a[i++]);n=i-1;
	
	for(int j=0;j<n;j+=2){
		s=a[j]+a[j+1];
		if(s!=0){d=(int)log10((double)s);d++;}
		else{d=1;}
		cout<<d<<endl;
	}
	
	return 0;
}

C++: #include<iostream>

using namespace std;

int main(void){
  int i=0,n=0,a,b=0;
  while(cin >> i >> n){
    a = i+n;
    while(a>0){
      a = a/10;
      b++;
  }
    cout << b <<endl;
    b = 0;
  }
}

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

C++: #include<iostream>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
		int s=a+b;
		if(s>=1000000)a=7;
		else if(s<1000000&&s>=100000)a=6;
		else if(s<100000&&s>=10000)a=5;
		else if(s<10000&&s>=1000)a=4;
		else if(s<1000&&s>=100)a=3;
		else if(s<100&&s>=10)a=2;
		else a=1;
		cout<<a<<endl;
	}



	return 0;
}

C++: #define scanf_s scanf
#include <string>
#include <stdio.h>
#include <math.h>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	int ans[MAX] = { 0 };
	while (scanf_s("%d %d", &a, &b) != EOF) {
		scanf_s("%d %d", &a, &b);
		sum = a + b;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		++cou;
	}
	for (int i = 0; i < cou; ++i) {
		if (i != 0) printf("\n");
		printf("%d", ans[i]);
	}
}

C++: #include <stdio.h>

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