Go: package main

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

func main() {
	sc := bufio.NewScanner(os.Stdin)
	for sc.Scan() {
		str := strings.Split(sc.Text(), " ")
		if len(str) != 2 {
			return
		}
		a, err1 := strconv.ParseInt(str[0], 10, 64)
		b, err2 := strconv.ParseInt(str[1], 10, 64)
		if err1 != nil || err2 != nil {
			return
		}
		a += b
		for b = 0; a > 0; a /= 10 {
			b++
		}
		fmt.Println(b)
	}
}

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

	int len[200];
	int max = 0;
	for(int num = 0 ;num < 200 ; num++)
	{
		string str;
		string item;
		vector<string> list;
		getline(cin, str);
		if (str == "")
		{
			break;
		}

		stringstream ss(str);
		while (getline(ss, item, ' ') && !item.empty()) {
			list.push_back(item);
		}
		int sum = stoi(list[0].c_str()) + stoi(list[1].c_str());
		int count = 0;
		for (int i = 10; i <= 10000000; i = i * 10)
		{
			count++;
			if(sum < i)
			{
				len[num] = count;
				max++;
				break;
			}


		}
	}
	for (int num = 0; num < max; num++)
	{
		cout << len[num] << endl;

	}
	return 0;
}

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

int main(void)
{
  int a, b;

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

  return 0;
}

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

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

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

int get_digit(int num);

int main() {
	int first;
	int second;
	int data_cnt = 0;
	std::vector<int> inputs;

	while ((cin >> first >> second) || (data_cnt < 200)) {
		data_cnt++;
		inputs.push_back(first + second);
	}

	for (int i = 0; i < data_cnt; i++) {
		cout << get_digit(inputs[i]) << endl;
	}

	return 0;
}

int get_digit(int num) {
	unsigned digit = 0;
	while (num != 0) {
		num /= 10;
		digit++;
	}
	return digit;
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <functional>

int main(void)
{
  int val1, val2;

  std::cin >> val1 >> val2;

  int sum = val1 + val2;

  int numDigit = 0;
  while (sum > 0) {
    sum /= 10;
    numDigit++;
  }

  std::cout << numDigit << std::endl;

  return 0;
}

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

using namespace std;

int main(){
	int a;
	int b;
	

	for (int i = 0; i <= 200; i++){
		cin >> a >> b;
		int  c = a + b;
		if (c >= 0 && c < 10){
			cout << "1" << endl;
		}
		else if (c >= 10 && c < 100){
			cout << "2" << endl;
		}
		else if (c >= 100 && c < 1000){
			cout << "3" << endl;
		}
		else if (c >= 1000 && c < 10000){
			cout << "4" << endl;
		}
		else if (c >= 10000 && c < 100000){
			cout << "5" << endl;
		}
		else if (c >= 100000 && c < 1000000){
			cout << "6" << endl;
		}
		else if (c >= 1000000 && c < 10000000){
			cout << "7" << endl;
		}
	}

	return 0;
}

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

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;

}