Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int

		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}

		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

C++: #include <stdio.h>

int keta();
int kuriagari();
int maxKeta();

int main(void)
{	//statusªEOFðÔµ½çAüÍI¹(ctrl+z)
	int a,b,status,digit,temp;
	do{
		status=scanf("%d%d",&a,&b);
		;temp=keta(a,b);
		;digit=temp+kuriagari(a,b,temp);
		if (status!=EOF){
			printf("%d\n",keta(a+b));
		}
	}while(status!=EOF);
	return 0;
}

int keta(int a){
	int i=1,b=10;
	while (a/10>0 || b/10>0){
		a/=10;
		b/=10;
		i++;
	}
	return i;
}

int kuriagari(int a,int b,int i){
	int aAmari,bAmari,hoge;
	//maxKeta(a,&aAmari,i);
	//maxKeta(b,&bAmari,i);
	//printf ("%dÚF%dÆ%d\n",i,a,b);
	//printf ("	AÌ ÜèF%d  BÌ ÜèF%d\n",aAmari,bAmari);
	if (i==0){
		return 0;
	}else{
		//printf("%d+%dÈÌÅ%dðÔµÜ·B\n",maxKeta(a,&aAmari,i),maxKeta(b,&bAmari,i),hoge=(maxKeta(a,&aAmari,i)+maxKeta(b,&bAmari,i)+ kuriagari(a-aAmari,b-bAmari,i-1))/10);
		return (maxKeta(a,&aAmari,i)+maxKeta(b,&bAmari,i)+ kuriagari(a-aAmari,b-bAmari,i-1))/10;
	}
}
	
int maxKeta(int a,int *aAmari,int i){
	int maxKetaA=a;
	*aAmari=1;
	for(;i>1;i--){
		//printf("%d|",*aAmari);
		maxKetaA/=10;
		*aAmari*=10;
	}
	*aAmari*=maxKetaA;
	return maxKetaA;
}

C++: #include<iostream>
#include<sstream>
#include<string>
using namespace std;
int main() {

	unsigned int a, b;
	unsigned int cnt = 0;

	cin >> a >> b;

	int ans = a + b;

	stringstream ss;
	ss << ans;
	string sum = ss.str();

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

	return 0;
}

C++: #include <iostream>

int digit(int x){
	
	int y;
	
	while(x){
		x/=10;
		y++;
	}
	return y;
}


int main(){

	int a,b;

	while(std::cin >> a >> b ){
		std::cout << digit(a+b) <<  std::endl;
	}
}

C++: #include <cstdio>

int main() {
	int a, b;
	char temp[100];

	while (scanf("%d %d", &a, &b) != 0) {
		printf("%d\n", sprintf(temp, "%d", a + b));
	}

	return 0;
}

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

int main() {

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

		cin >> a >> b;

		c=a+b;

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

	cout << d << endl;

	return 0;
}

C++: #include<iostream>

int main(){
	int a,b,i,n;
	while(std::cin>>a>>b){
		i=1;
		for(n=1;n>0;n++){
			if(i<=a+b){
				if(a+b<i*10){
					std::cout<<n<<std::endl;
					n=-1;
				}else{
					i=i*10;
				}
			}
		}
	}
	return 0;
}

C++: #include <cstdio>

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

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

int main()
{
    while(true){
        std::string a, b;
        std::cin >> a >> b;
        if(!std::cin) break;
        std::cout << a.length() + b.length() << std::endl;
    }
    return 0;
}

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

int main() {

    int a, b;

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

}

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

using namespace std;
int main(void){
  int a,b,res;
  int i=0;

  while(cin>>a>>b){
    i=0;
    res=a+b;

    while(res>0){
      res=res/10;
      i++;
    }

    printf("%d\n",i);
  }

  return 0;
}

C++: #include <iosteram>

using namespace std;

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

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

int main(){
    int a, b;
    while (std::cin >> a >> b){
        std::string sum = std::to_string(a+b);
        printf("%ld\n", sum.length());
    }
    return 0;
}

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

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7765;
	
	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>
#include<cstdio>
#include<algorithm>
using namespace std;

int main(){
    int a,b;
    
    while(cin >> a >> b){
        int cnt=1;
        int c=10;
        for(int i=0;i<8;i++){
            cout << c << ' ' << cnt << endl;
            if((a+b)-c<0)break;
            //cout << a << ' ' << b << '=' << a+b << endl;
            cnt++;
            c*=10;
        }
        cout << cnt << endl;
    }
    
    
    return 0;
}

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

C++: #include <iostream>


using namespace std;

int a, b;

void solve()
{
	int res = 0;

	a += b;

	for (; a; a /= 10)
		res++;

	cout << res << endl;
}

int main()
{
	while (cin >> a >> b)
		solve();

	return 0;
}

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

int main(){
	long int a,b,c,s;
	double r;
	while(cin >> a >> b){
		c = a + b;
		r = log10(c) + 1;
		s = r;
		cout << s << endl;
	}
	return 0;
}

C++: #include<stdio.h>

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

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

int main() {
	string s1;
	int a, b,c;

	cin >> a >> b;
	c = a + b;

	s1 = to_string(c);
	cout << s1.length() << endl;

	return 0;
}

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

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

C++: //#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include <cstdlib>
//#include <cmath>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <vector>
#include <string>
#include <map>
#include <list>
#include <queue>
#include <set>
using namespace std;

int main(void){

	int a, b;
	
	while(cin >> a >> b){
	
	string num = to_string(a+b);
	
	cout << num.size() << endl;
	}

	return 0;
}

/*
for(i=0;i<N;i++){
	cin >> X[i];
}


for(i=0;i<N;i++){
	for(j=0;j<N;j++){
		cin >> X[i][j];
	}
}
*/

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int x,y;
    for(;;){
        cin >> x >> y;
        if(cin.eof())   break;
        cout << to_string(a+b).length() << "\n";
    }
}

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

int main() {
    int ch, a, b, sum;
    do {
        cin>>a>>b;
        sum = a + b;
        int count;
        for (count = 0; sum != 0; count++) {
            sum /= 10;
        }
        cout<<count<<endl;
        ch = getchar();
    }while (ch != EOF);
    return 0;
}

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