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 <bits/stdc++.h>


int main()
{
    int a, b;
    int count, tmp;

    while (std::scanf("%d %d", &a, &b) != EOF) {

        count = 0;
        tmp= a + b;

        while(tmp != 0) {
            count++;
            tmp /= 10;
        }

        std::cout << count << std::endl;
    }

    return 0;
}

C++: #include <iostream>

using namespace std;

typedef long long ll;

int main(){

	ll a,b;
	while(1){
		cin >> a >> b;
		if(cin.eof()){
			break;
		}
		ll sum = a + b;
		int cnt = 1;
		while(sum / 10){
			sum/=10;
			cnt++;
		}
		cout << cnt << endl;
	}

	return 0;
}

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

int main()
{
	int x, y;
	while (cin >> x >> y){
		int a, b;
		if (x == 0){
			a = 0;
		}else{
			a = to_string(x).size();
		}
		if (y == 0){
			b = 0;
		}
		else{
			b = to_string(y).size();
		}
		cout << a + b << "\n";
	}
	cout.flush();
}

C++: #include<iostream>

using namespace std;

main(){
  int i=0;
  double a,b;
  double sum;
  while(1){
    cin >> a >> b;
    sum = a+b;
    
    while(sum>1){
	i++;
	//cout << i << endl;
	sum/=10;
    }
      cout << i << endl;
      i=0;
  }
  return 0;
  
}

C++: #include <iostream>

using namespace std;

int main(){
	int a, b,x,cnt;	//?????°
	
	while (cin >> a >> b){
		cnt = 0;
		x = a + b;

		while (x > 0){
			cnt++;
			x /= 10;
		}

		cout << cnt << endl;
	}
	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=0;

	scanf("%d",&set);
	for(int i=0;i<set;i++) //input
		scanf("%d%d",&a[i],&b[i]);

	for(int i=0;i<set;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		printf("%d\n",cnt);
		cnt=0;
	}

	return 0;
}

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

using namespace std;

int main()
{
	string tmp;
	int nspace;
	do
	{
		getline(cin,tmp);
		if(cin.eof()) break;
		nspace=tmp.find(" ");

		string astring=tmp.substr(0,nspace);
		string bstring=tmp.substr(nspace+1);

		istrstream astr(astring.data());
		istrstream bstr(bstring.data());

		int a,b;

		astr>>a;
		bstr>>b;

		int a_keta=(int)log10(a)+1;
		int b_keta=(int)log10(b)+1;

		cout<<a_keta+b_keta;
		
				 
	}while(1);

	
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <bitset>
#include <set>
#include <queue>

#define rep(i,n) for(int i=0;i<n;i++)
#define REP(i,b,n) for(int i=b;i<n;i++)

const float PI = 3.1415926;
static const int INFTY = (1<<30);

using namespace std;

typedef long long ll;
typedef long double ld;

int n, a, b, res;

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

  return 0;
}

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

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

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

C++: #include<stdio.h>


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

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

#define pout(n)  printf ("%d\n", n)

#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)

const int d4x[4] = {1, 0, -1, 0};
const int d4y[4] = {0, 1, 0, -1};
const int d8x[8] = { 1,1,0,-1,-1,-1,0,1 };
const int d8y[8] = { 0,1,1,1,0,-1,-1,-1 };
 
typedef long long ll;
using namespace std;
 
int main() {
  ll a,b;
  while(cin >> a >> b){
    a += b;
    ll count = 1;
    
    while((a /= 10) > 0){
       a /= 10;
      count++;
    }
    
    printf("%lld",count);
  }
  return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
     long long a,b;
    while(1){
        cin >> a >> b;
        if(cin.eof()){
            break;
        }
        long long sum = a + b;
        int cnt = 1;
        while(sum/10>=1){
            sum/=10;
            cnt++;
        }
        cout << cnt << endl;
    }
    return 0;
}

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

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

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

int main(){
  int a, b, c;
  int keta;

  while(cin >> a){
    cin >> b;
    c=a+b;
    keta=1;
    while((c/=10)>0) keta++;
    cout << keta << endl;
  }
  
  return 0;
}

C++: #include<iostream>
using namespace std;
int main()
	{
		int a, b, sum, result = 0;
		while (scanf("%d %d", &a, &b) != EOF)
		{
			sum = a + b;
			while (sum > 0){
				sum /= 10;
				result++;
			}
			cout << result;
		}

		return 0;
	
}

C++: #include <iostream>

using namespace std;

int countDigitNumber(int num);

int main(void)
{
    int a,b;
    
    while (cin >> a >> b) {
        cout << countDigitNumber(a + b) << endl;
    }
    
    return 0;
}

int countDigitNumber(int num)
{
    int digits = 0;
    
    while (num) {
        num /= 10;
        digits++;
    }
    
    return digits;
}

C++: #include <iostream>
#include<cstdio>
using namespace std;
int main()
{
    char a,b;
    while(a=getchar() && a!=EOF){
        cin>>b;
        int sum=0,c=a+b-96;
        while(c!=0){
            c=c/10;
            sum++;
        }
        cout<<sum<<endl;
    }
    return 0;
}

C++: #include <iostream>
#include<string>
#include<cmath>
#include<algorithm>
#include<cctype>
#include<queue>
#include<stack>
#include<stdio.h>
#include<vector>
#include<set>
#include<map>
#include<iomanip>
#define rep(i,n) for(int i=0;i<n;i++)
typedef int long long ll;

using namespace std;
int main(){

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




return 0;
}

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

int main() {
	int cnt = 0;
	char a;
	while (getchar()!= '\n') {
		cnt++;
	}
	while (getchar() != '\n') {
		cnt++;
	}
	cout << cnt<<endl;
	return 0;
}

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

int main()
{
  int tmp,tmp2;
  cin >> tmp >> tmp2;
  tmp += tmp2;
  
  to_string(tmp);
  cout << tmp.length << endl;
  return 0;
}

C++: #include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;

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

C++: #include <stdio.h>

//int digit( x );
int digit( x ){
  int c=1;
  while( (x / 10) != 0){
    x /= 10;
    c++;
  }
  return c;
}
int main(){
  int a, b;
  int x;

  while( scanf("%d %d", &a, &b) != EOF){
    x = digit( a+b );
    printf("%d\n", x);
  }
  return 0;
}