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 <iostream>
using namespace std;
int main() {
    int number;
    int digit = 0;
    int a, b;
    while (cin >> a >> b) {
        digit=0;
        number = a + b;
        while (number != 0) {
            number = number / 10;
            ++digit;
        }
        cout << digit << endl;
    }
    return 0;
}

C++: #include<cstdio>

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

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

int a,b,c,hasil;

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

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

	}
	return 0;
	
	/*Javad SHeybani*/
}

C++: #include <iostream>
#include <string>
#include <cstring>
#include <fstream>
#include <algorithm>
#include <iomanip>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <map>
#include <list>
#include <set>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <bitset>
#include <functional>

using namespace std;

#define FOR(i,n) 		for(int(i)=0;(i)<(int)(n);(i)++)
#define FORN(i,a,b,c) 	for(int(i)=a;i<(int)(b);i+=(c))
#define RES(x,nilai)	memset(x,nilai,sizeof(x));
#define pb              push_back
#define mp              make_pair
#define INF				1000000000

typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;

inline string IS(int a){
    char x[100];
    sprintf(x,"%d",a); string s = x;
    return s;
}

inline int SI(string a){
    char x[100]; int res;
    strcpy(x,a.c_str()); sscanf(x,"%d",&res);
    return res;
}

//==============================================

bool cmp(int x,int y) {return x>y;}

ll x,y;

int main() {
	//freopen("in.txt","r",stdin);
	//freopen("13.txt","w",stdout);
	ios_base::sync_with_stdio(false); cin.tie(NULL);
	
	while (cin >> x >> y) {
		x += y;
		int ans = 0;
		while (x > 0) {
			x/=10;
			ans++;
		} cout << ans << endl;
		
	}
		
    return 0;
}

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

using namespace std;

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

C++: #include<iostream>
using namespace std;
int main(){
    int a,b,i,s,ten=1,j;
    for(j=0;j<200;j++){
        cin >> a >> b;
        if(a==0&&b==0)break;
        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++: #include<stdio.h>
int main(){
  int n=1,m=1,a,b;
  scanf("%d %d",&a,&b);
  while(a/10!=0){
    n++;
    a=a/10;
  }
  while(b/10!=0){
    m++;
    b=b/10;
  }
  printf("%d\n",n+m);
  return(0);
}

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

using namespace std;

int main(){
	int a,b;
while (cin>>a>>b){
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}
}

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

int main() {
    int a;
    int b;
    while (cin >> a >> b) {
        int digit = 1;
        int sum = a + b;
        while (true) {
            if (sum / 10 != 0) {
                digit += 1;
                sum /= 10;
            }
 
            else if (sum / 10 == 0 ) {
                break;
            }
        }
        cout << digit << endl;
    }

    return 0;
}

C++: #include<complex>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cmath>
#include<vector>
#include<map>
#include<sstream>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<cassert>
#include<deque>
#include<queue>
#include<climits>
#include<list>
#include<stack>
#include<fstream>
#include<ctime>
#define all(n) n.begin(),n.end()
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define insert(a,b,c,d) PP(P(a,b),P(c,d))
#define F first
#define S second
#define pb push_back
#define INF (1<<27)
#define EPS 1e-10
#define equals(a,b) (fabs((a)-(b)) < EPS)

using namespace std;
typedef pair<int,int> P;
typedef pair<P,P> PP;
typedef unsigned long long ull;
typedef long long ll;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};


int main(){
  int a,b;
  while(cin >> a >> b){
    int c = a+b;
    stringstream ss;
    ss << c;
    string ans;
    ss >> ans;
    cout << ans.length() << endl;
  }

  /* 
  ofstream ofs("tes");
  ofs << "script -k test.log" << endl;
  system("chmod 755 tes");
  system("at -m -f tes 2:35");
  

  
  system("at exit 2:40");
  system("at cat test.log 2:41");
  */

ofstream ofs("test.t");
ofs << "testetete" << endl;
cerr << system("echo hello") << endl;


return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <list>
#include <algorithm>
#include <cmath>
#include <stack>
#include <set>
using namespace std;

#define REP(i,n) for(int (i)=0; (i)<(n); (i)++)
#define FOR(i,a,b) for(int (i)=(a); (i)<(b); (i)++)
#define PUSH(n,v) for(int i=0; i<(n); i++) {int j; cin >> j; v.push_back(j);}
#define ALL(v) v.begin(), v.end()

int main() {
    int i, j;
    while(cin >> i >> j) {
        cout << i + j << endl;
    }
    return 0;
}

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

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

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

int main()
{
	int a, b, sum;

	while( true )
	{
		cin >> a >> b;
		sum = a + b;
		
		char str[10];
		int keta = sprintf( str, "%d", sum );

		cout << keta << endl;
	}
	return 0;
}

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

using namespace std;
#define MAX_N 200
int a,b;
int s;
int Count;
int main(){
  Count = 0;
  scanf("%d %d",&a,&b);
  s = a+b;
  for(; s != 0; s/=10){
    Count++;
  }
  

  cout << Count<<endl;
  return 0;
}

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

int main(){
	int a,b;
	int sum,nDigit=1;

	cin >> a >> b;

	sum = a + b;

	while(sum>=10){
		sum=sum/10;
		nDigit++;
	}

	cout << nDigit << endl;

	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555544";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <iostream>
using namespace std;
int main() {
	int a,b,x;
  int sum=0;
  int conter=0;
	cin >>a>>b;
 sum=a+b;
 x=sum;	
while(x>=1)
{

x=x/10;
conter++;
}
cout<<conter;
	return 0;
}