Go: package main

import (
	"fmt"
	"strconv"
)

func main() {
	result := make([]int, 0, 200)

	for {
		var a, b int
		scanCount, _ := fmt.Scanf("%d %d", &a, &b)
		if scanCount == 2 {
			result = append(result, a+b)
		} else {
			break
		}
	}

	for _, v := range result {
		length := len(strconv.Itoa(v))

		fmt.Println(length)
	}
}

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

C++: #include <functional>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <cstring>
#include <iomanip>
#include <fstream>
#include <climits>
#include <cctype>
#include <cstdio>
#include <string>
#include <vector>
#include <bitset>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <deque>
#include <list>
#include <map>
#include <set>
using namespace std;

typedef long long LL;
typedef unsigned int ui;
typedef unsigned long long ULL;

typedef pair < int , int > ii;
typedef pair < LL  , LL  > ll;

typedef vector <int>  vint;
typedef vector <bool> vbool;
typedef vector <long> vlong;

#define sz(x)			((int)x.size())
#define tin(x)			scanf("%d",&x)
#define all(x)			x.begin(),x.end()
#define Set(b,a)		memset(b,a,sizeof b)
#define print1(x)		printf("Case %d:",x++)
#define tin2(x,y)		scanf("%d%d",&x,&y)
#define tin3(x,y,z)		scanf("%d%d%d",&x,&y,&z)
#define loop(i,i0,in)	for(int i=i0 ; i<in ; i++)
#define rep(i,n)		for(int i=0 ; i<(n) ; i++)
#define _rep(i,n)		for(int i=n-1 ; i>=0 ; i--)
#define _loop(i,in,i0)	for(int i=in-1 ; i>=i0 ; i--)
#define Fore(it, x)		for(typeof (x.begin()) it = x.begin(); it != x.end (); it++)
     
int main()  
{  
#ifdef Online_Judge
	freopen("a.in","r",stdin);
#endif
	int x,y;
	int ans=0;
	while(tin2(x,y)==2)
	{
		ans=0;
		x=x+y;
		while(x!=0)
		{
			x/=10;
			ans++;
		}
		printf("%d\n",ans);
	}
	return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
#include<stack>
#include<queue>
#include<cstdio>
#include<climits>
#include<cmath>
#include<cstring>
#include<string>

#define f first
#define s second
#define mp make_pair

#define REP(i,n) for(int i=0; i<(int)(n); i++)
#define FOR(i,c) for(__typeof((c).begin()) i=(c).begin(); i!=(c).end(); i++)
#define ALL(c) (c).begin(), (c).end()

using namespace std;

typedef unsigned int uint;
typedef long long ll;

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

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

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

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