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>
#include<algorithm>
using namespace std;
int main (){
    int a[1000000],b[1000000];
    for(int i=0;i<200;i++){
        cin>>a[i]>>b[i];
    
        if(a[i]+b[i]<10){
        cout<<"1"<<endl;
        }
        else if(a[i]+b[i]<100){
        cout<<"2"<<endl;
        }
        else if(a[i]+b[i]<1000){
            cout<<"3"<<endl;
        }
        else if(a[i]+b[i]<10000){
            cout<<"4"<<endl;
        }
        else if(a[i]+b[i]<100000){
            cout<<"5"<<endl;
        }
        else if(a[i]+b[i]<1000000){
            cout<<"6"<<endl;
        }
        else if(a[i]+b[i]<10000000){
            cout<<"7"<<endl;
        }
    }
    return 0;
}

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

int main(){
    std::cin.tie(0);
    std::ios::sync_with_stdio(false);

    int a,b;
    int num;
    while (std::cin >> a >> b) {
        num = a+b;
        unsigned digit=0;
        while(num!=0){
            num /= 10;
            digit++;
        }
        std::cout << digit << std::endl;
    }
    
    return EXIT_SUCCESS;
}

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

using namespace std;

int main(){
	while(!cin.eof()){
		int a,b;
		cin>>a>>b;
		int m = a+b;
		int d = 0;
		if(m == 0){
			cout << "1" << endl;
			continue;
		}
		while(m > 0){
			m /= 10;
			d++;
		}
		cout << d << endl;
	}
	return 0;
}

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

int main()
{
	const int BUFF_SIZE = 100;
	char buff[BUFF_SIZE];
	
	while (NULL != fgets(buff, BUFF_SIZE, stdin))
	{
		int a, b;
		sscanf(buff, "%d %d", &a, &b);
		sprintf(buff, "%d", a + b);
		printf("%d\n", strlen(buff));
	}
	
	return 0;
}

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

int main(){
int sum;
string truss;
  int a,b;
  while(cin>>a>>b) {
 sum=a+b;
 truss=to_string(sum);
 cout<<truss.size()<<endl;
  }
  return 0;
}

C++: #include <iostream>
using namespace std;
int main( void )
{
	while ( !cin.eof() )
	{
		long long a, b;

		cin >> a >> b;
		if ( cin.eof() )
			break;
		long long sum = a + b;

		int cnt = 0;
		while ( sum >= 10 )
		{
			sum /= 10;
			cnt++;
		}
		
		int kotae = cnt + 1;
		cout << kotae << endl;

	}
	return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<math.h>
using namespace std;
int unco(int n);

int main(int argc, char *argv[]){
	int a[200],b[200];
	cin>>a[0];cin>>b[0];
	a[0]+=b[0];
		cout<<unco(a[0])<<endl;
	for(int i=0;a[i]!=NULL;){
		i++;
		cin>>a[i];cin>>b[i];
		a[i]+=b[i];
		cout<<unco(a[i])<<endl;
	}
	return 0;
}
int unco(int n){
	int i;
	return (int)(logf((float)n)/logf(10.0))+1;
}

C++: #include<iostream>

using namespace std;

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

	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a[200],b[200],sum[200],keta[200],cnt=0;

	for(int i=0;i<3;i++) //input
		scanf("%d%d",&a[i],&b[i]);

	for(int i=0;i<3;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		keta[i]=cnt;
		cnt=0;
	}

	for(int i=0;i<3;i++) //output
		printf("%d\n",keta[i]);

	return 0;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
  int n,m;
  while(cin>>n>>m){
    cout<<(int)log10((double)(n+m))+1<<endl;
  }
}

C++: #include<iostream>
using namespace std;
int main(){
int a=0,b=0,c=0;
while(cin>>a>>b){
	if(a+b==0){
		cout<<c<<endl;
		c=0;
	}
	else{
	for(int x=1;x<=a+b;x=x*10){
		c=c+1;	
	}
	cout<<c<<endl;
	c=0;
}
}
}

C++: #include<iostream>
using namespace std;
int main()
{
int a,b,i;
i=0;
while(cin>>a>>b)
{
cin>>a>>b;
i++;
}
for(int j=0;j<i;j++)
{
if(a+b<10)
{
	cout<<1<<endl;
}
else if(a+b<100)
{
	cout<<2<<endl;
}
else if(a+b<1000)
{
	cout<<3<<endl;
}
else if(a+b<10000)
{
	cout<<4<<endl;
}
else if(a+b<100000)
{
	cout<<5<<endl;
}
else if(a+b<1000000) 
{
	cout<<6<<endl;
}
else if(a+b<10000000)
{
	cout<<7<<endl;
}
}
return 0;
}

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

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

C++: 
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
	int a,b,c,i=0;
	while(cin>>a>>b)
	{
		c=a+b;
		i=0;
		while(c)
		{
			c=c/10;
			i++;
		}
		cout<<i<<endl;
	}
	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=0;

	scanf("%d",&set);
	for(int i=0;i<set;i++){
		scanf("%d%d",&a[i],&b[i]);

		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		keta[i]=cnt;
		cnt=0;
	}

	for(int i=0;i<set;i++) //output
		printf("%d\n",keta[i]);

	return 0;
}

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

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

C++: #include <iostream>
#include <cmath>
int main(){
long a, b, digits;
std::cin >> a;
std::cin >> b;
if(a == 0 && b == 0)
digits = 1;
else
digits = (int)(std::log10((double)(a+b))) + 1;
std::cout << digits << std::endl;
return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
    int a,b,c;
    while(cin >> a >> b){
        c = 10;
        for(int i = 1; i < 10; i++){
            if(a + b < c){
                cout << i <<endl;
                break;
            }
            else c *= 10;
        }
    }
    return 0;
}

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

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

int main(void){
	int a,b;
	double sum;
	int dig;

	std::cin >> a >> b;
	sum = (double)a+(double)b;
	std::cout << sum << "\n";
	dig = floor(log(sum)/log(10.0));
	std::cout << dig+1 << "\n";
	return 0;
}

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

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

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<1100) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

using namespace std;

int a,b;
int s;
int Count;
int main(){
  while(scanf("%d %d",&a,&b) != EOF){
    s = a+b;
  Count = 0;
  for(; s != 0; s/=10){
    Count++;
  }
  printf("%d\n",Count);
  }
  return 0;
}