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>
using namespace std;

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

C++: #include<cstdio>
int main(void){
int a,b,i,s;
while(scanf("%d",&a)!=EOF){
 scanf("%d",&b);
 s=a+b;
 for(i=0;s>0;i++){
  s/=10;
 }
 printf("%d\n",i);
}
return 0;
}

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

int main() {
  int a, b;
  stringstream ss;
  while (cin >> a >> b) {
    ss << a + b;
    cout << ss.str().size() << endl;
  }
  return 0;
}

C++: //Digit Number
#include<bits/stdc++.h>

int digit(long long x){
  int i=1;
  while(true){
    x/=10;
    if(x==0)break;
    i++;
  }
  return i;
}

int main(){
  long long  a, b;
  while(true){
    scanf("%lld %lld", &a, &b);
    printf("%d\n", digit(a+b));
  }
  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
int a,b,c;
int C=0;
int d=0;
while(cin>>a>>b){
c=a+b;
C=0;
d=1;
while(c>=d)
{
	C++;
	d*=10;
}
cout<<C<<endl;
}
}

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

int main(){
	int a,b,c;
	int ans;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;
		//-----test-----
		if(1000000<=a) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <bits/stdc++.h>

#define times(n, i) uptil(0, n, i)
#define upto(f, t, i) for(auto _##i = (t), i = decltype(_##i)(f) poi i <= _##i poi i++)
#define uptil(f, t, i) for(auto _##i = (t), i = decltype(_##i)(f) poi i < _##i poi i++)
#define downto(f, t, i) for(auto i = (f), _##i = decltype(i)(t) poi i >= _##i poi i--)
#define downtil(f, t, i) for(auto i = (f), _##i = decltype(i)(t) poi i > _##i poi i--)

#define unless(c) if(!(c))
#define until(c) while(!(c))
#define loop while(true)

#define poi ;
#define poipoi << "\n"

using namespace std;

int main(){
    until(cin.eof()){
        int a, b poi
        cin >> a >> b poi
        int sum = a + b, i = 0 poi
        while(sum){
            sum /= 10 poi
            i++ poi
        }
        cout << i poipoi poi
    }
    return 0 poi
}

C++: #include<iostream>

using namespace std;

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

C++: #include<iostream>
using namespace std;
int digit(int ,int);

int main(){
  int a,b;
  for(int i=0;i<200;i++){
    cin >>a>>b;
    cout <<digit(a,b)<<endl;

 }
  return 0;

}


int digit(int a,int b){
  int count=1,x;
  x=a+b;
  while(1){
    if(x/10<1)break;
  x/=10;
  count++;
}
  return count;}

C++: #include<iostream>
using namespace std;
 
void digitLength()
{
    int a,b;
    int len = 1;
    int div;
    
    cin>>a;
    cin>>b;
    
    int var = a+b;
    
    while(1)
    {
        div = var / 10;
        
        if(div == 0)
            break;
        var = div;
        len++;
        
    }
    
    cout<<len;
    return;
}
 
 
int main(){
 
    digitLength();
    return 0;
}

C++: #include <iostream>
#include <string>
#include <stack>
#include <math.h>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <vector>

using namespace std;





int main()
{
	int a, b,c;
	while (cin >> a) {
		cin >> b;
		c = log10(a + b)+1;
		cout << c << endl;
	}

		





}

C++: /*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp*/

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    while(!cin.eof()){
        int a,b;
        cin>>a>>b;
        cout<<(int)log10(a+b)<<endl;
    }
    return 0;
}

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

using namespace std;
int main(){
	int a,b;
	while(!cin.eof()){
		cin >> a >> b;
		cout << int(log10(a+b))+1 << endl;
	}
	return 0;
}

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

int main() {

	int a, b, c,d;
	char e[100];

		cin >> a >> b;

		c=a+b;

		d = sprintf_s(e,"%d", c);

	cout << d << endl;

	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <map>
#include <cmath>
using namespace std;
int p(int h){
	int j=0;
	while(h){
		h/=10;
		j++;
	}
	return j;
}
int main(){
	int a,b;
	while(scanf("%d%d",&a,&b)!=EOF){
		cout<<p(a+b)<<endl;
	}
	return 0;
}

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

int main()
{
	int a,b,c;
	char str[16];
	while(cin >> a >> b){
		c = sprintf(str,"%d",a+b);
		cout << c << endl;
	}
	return 0;
}

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

int main(){
  int a, b, c;
  int i = 10;
  int num = 1;
  
  while(scanf("%d", &a)!=EOF){
    scanf("%d", &b);
    c = a + b;
    while(1){
      if(c/i!=0){
        num++;
        i *= 10;
      }else{
        break;
      }
    }
    std::cout << num << std::endl;
  }
  
  return 0;
  
}

C++: #include <bits/stdc++.h>

using namespace std;

int main() {
	long long number_1, number_2, sum;
	
	while(scanf("%ld %ld", &number_1, &number_2) != EOF) {
		sum = number_1 + number_2;
		
		stringstream result;
		result << sum;
		
		cout << result.str().size() << endl;
	}	
	return 0;
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>

#pragma warning(disable:4996)
#define MAX_DATA (199)
int main()
{
	char Work[MAX_DATA][256];

	int Num[2];
	int Divide;
	int nCnt2,nCnt = 0, Result, Keta = 1;

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
		gets(Work[nCnt2]);

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
	{
		for (nCnt = 0; Work[nCnt] != '\0'; nCnt++)
		{
			if (Work[nCnt2][nCnt] == ' ')
			{
				char Work2[256];
				char Work3[256];

				strcpy(Work2, &Work[nCnt2][nCnt]);

				Work[nCnt2][nCnt] = '\0';

				strcpy(Work3, Work[nCnt2]);

				Num[0] = atoi(Work3);
				Num[1] = atoi(Work2);
				break;
			}
		}

		Result = Num[0] + Num[1];

		Keta = 1;
		for (nCnt = 0; ;nCnt++)
		{
			Result = Result / 10.0f;

			if (Result > 0)
				Keta++;
			else
				break;
		}

		printf("%d\n", Keta);
	}
	
	return 0;
}

C++: #include <iostream>
#include <sstream>
#include <vector>
#include <algorithm>
#include <string>
#include <functional>
#include <numeric>
#include <ctype.h>
#include <cstdlib>
#include <string.h>
#include <cmath>
#include <cstdio>





using namespace std;


int main()
{
	int a, b;

	string str;

	while (cin >> a >> b)
	{

		int sum = a + b;

		str = to_string(sum);

		cout << str.size() << endl;

		
	}


}

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

int main(){

	int a;
	int b;

	for(int i = 0; i < 10; ++i){
		cin >> a >> b;
		a += b;
		b = 0;
		while(1){
			a /= 10;
			++b;
			if(a <= 0){
				break;
			}
		}
		cout << b << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <queue>
#include <set>
#include <numeric>
#include <cmath>

using namespace std;

typedef long long int lld;

const lld mod = 1e9+7;
const lld INF = 1e9;
//const lld MAXN = 1e9;

int main()
{
	string a,b;
	while(cin>>a>>b)
	{
		int cnt = 0;
		for(int i = 0; i < a.size(); i++)
		{
			if (a[i]!='0')
			{
				cnt++;
			}
		}
		for(int i = 0; i < b.size(); i++)
		{
			if (b[i]!='0')
			{
				cnt++;
			}
		}
		cout << cnt << endl;
	}

	return 0;
}

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

int main(){
	int a, b;
	while (cin >> a >> b){
		cout << (int)(log10((double)(a + b)) + 1)<< '\n';
	}
	return 0;
}

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

int keta(int i){
	if(i<10){
		return 1;
	}else{
		return 1+keta(i/10);
	}
}

int main(){
	int a,b;
	while(!cin.eof()){
	cin >> a >>b;
	cout << keta(a+b)<<endl;
	}
}