Go: package main

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

var (
	sc = bufio.NewScanner(os.Stdin)
)

func main() {
	for sc.Scan() {
		chunks := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

C++: #include <iostream>
using namespace std;
int main (){
  int a;
  int b;
  int k;
  int h;
  for(;;){
  cin >>a>>b;
  k=a+b;
  h=0;
  if (k<10&&h==0){
      cout << "1"<<endl;
      h=1;
  }
  if (k<100&&h==0){
    cout << "2"<<endl;
    h=1;
      }
  if (k<1000&&h==0){
    cout << "3"<<endl;
    h=1;
      }
  if (k<10000&&h==0){
    cout << "4"<<endl;
    h=1;
      }
  if (k<100000&&h==0){
    cout << "5"<<endl;
    h=1;
      }
  if (k<1000000&&h==0){
    cout << "6"<<endl;
    h=1;
      }
  if (k<10000000&&h==0){
    cout << "7"<<endl;
    h=1;
      }
  if (k<100000000&&h==0){
    cout << "8"<<endl;
    h=1;
      }
  if (k<1000000000&&h==0){
    cout << "9"<<endl;
    h=1;
      }
  if (k<10000000000&&h==0){
    cout << "10"<<endl;
    h=1;
      }
  }
}

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

using namespace std;

void get_digit(int a,int b){
  int sum = a+b;
  int digit=0;

  while(sum != 0){
    sum /= 10;
    digit++;
  }

  cout <<digit << "\n";
}

int main(){
  int i=0;
  int input=-1;
  int a=-1,b=-1;

  while(cin >> input ){
    i++;
    if(i == 1){
      a = input;
    }else if(i == 2){
      b = input;
      i=0;
    }
    if(i == 0){
      get_digit(a,b);
      a = -1;
      b= -1;
    }
  }

  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a,b;
  int k=0;
  int s=0;
  int i;
  int ke[999]={0};
  while(cin>>a>>b){
  s=a+b;
  while(s>=10){
    s=s/10;
    ke[k]++;
  }
  k++;
}
  for(i=0;i<=k;i++){
  cout<<ke[i]+1<<endl;
}
  return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    int x,y;
    int result;
    cin >> x;
    cin >> y;
    
    result = x + y;
    

  int count = 0;
  while(result)
{
   result /= 10;
   ++count;

}
 cout << count << endl;   
     
    return 0;
    
}

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