Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	return strconv.Atoi(nextString())

}

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		a, err := nextInt()
		if err != nil {
			break
		}
		b, _ := nextInt()

		s := a + b
		nDigits := int(math.Log10(float64(s))) + 1
		fmt.Println(nDigits)
	}
}

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


using namespace std;

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

C++: #include <iostream>

using namespace std;

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

  while(cin>>a>>b) cout << (a+b) << 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>
using namespace std;
int main(){
  int a;
  int b;
  int ans;
  int i;
  while(cin >> a >> b){
    ans = a + b;
    for(i=1;;i++){
      ans/=10;
      if(ans==0) break;
    }
    cout << i <<endl;
  }
  return 0;
}

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

int main(){
	int a,b,sum;
	int z[2];
	for(int t=0;t<3;t++){
			for(int i=0;i<2;i++){
				cin>>z[i];}
			a=z[0];
	        b=z[1];
			if(a>=0&&b<=10000000){
	        sum=a+b;
			}
			else{break;}
		int j=0;	
		for(;sum>=1;j++){
			sum=sum/10;
		}
		cout<<j<<endl;
	}
	return 0;
}

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

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

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