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<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<set>
#include<functional>
#include<queue>
#include<math.h>
#define INF 999999

using namespace std;

int main()
{
	int ans[210];

	int a, b;
	int k = 0;
	while(cin>>a>>b){
			int c = a + b;
			int d = c;
			int count = 0;
			while (d != 0) {
				d = d / 10;
				count++;
			}
			ans[k] = count;
			k++;
		
	}

	for (int i = 0; i < k; i++) {
		cout << ans[i] << endl;
	}

	return 0;
}

C++: #include<cstdio>

int main(){

	int a, b, sum=0, x;
	scanf("%d, %d", a, b);
	sum = a+b;

	if(sum<10) x=1;
	else if(10<=sum && sum<100) x=2;
	else if(100<=sum && sum<1000) x=3;
	else if(1000<=sum && sum<10000) x=4;
	else if(10000<=sum && sum<100000) x=5;
	else if(100000<=sum && sum<1000000) x=6;

	printf("%d",x);

	return 0;
}

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

int main()
{
    int a, b;
    while (scanf("%d %d", &a, &b) != EOF) {
        int temp = a + b;
        int dig = (int)log10((double)temp) + 1;
        cout << dig << endl;
    }
}

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

C++: #include <iostream>
#include <string>
#include <vector>
#include <cstring>
#include <climits>
#include <algorithm>
#include <map>

using namespace std;

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

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

int main()
{
	int a,b,sum;
	int count = 1;

	cin >> a >> b;
	sum = a + b;
	
	while(sum > 1){

		sum = sum / 10;
		count++;
	}

	cout << count << endl;


	return 0;
}

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];
        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;
        }
    }
    return 0;
}

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

using namespace std;

int main(){
	int num1,num2;
	char str[10];
	int i;

while(1){

	// 値の入力
	cin >> num1 >> num2;

	//整形
	sprintf_s(str,"%d\0",(num1 + num2));

	// 文字数計測
	for(i=0;str[i] != '\0';i++){
	}

	// 文字数表示
	cout << i << endl;

}

	return 0;
}

C++: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project
{
    class Test
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string[] numbers=input.Split(' ');
            int  answer = Convert.ToInt16(numbers[0]) +Convert.ToInt16( numbers[1]);
             string amswer1 = Convert.ToString(answer);
            Console.WriteLine((amswer1.Length));
        }
    }
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <string>
#include <algorithm>

using namespace std;

int main (int argc, char *argv[]) {
    int a, b;
    while (cin>>a>>b) {
        int sum = a + b;
        int cnt = 1;
        while (sum/10) {
            cnt++;
        }
        cout<<cnt<<endl;
    }
    return 0;
}

C++: #include <bits/stdc++.h>
#include <cstdio>
using namespace std;

int a;
int b;

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

C++: #include<stdio.h>
int main(){
		int a,b,c,count=0;
	while(scanf("%d %d",&a,&b)!=EOF){
		count = 0;
		c = a+b;
		while(1){
			c = c /10;
			count++;
			if(c==0)	break;
		}
		printf("%d\n",count);
	}
}

C++: #include <stdio.h>

int main(void) {
	int input1, input2;      /* 入力値 */
	int buff;               /* 計算値バッファ */
	int i;                     /* loopcounter */

	while (scanf("%d %d", &input1, &input2) != EOF) {

		buff = input1 + input2;
		i = 1;

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

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


	return 0;
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
using namespace std;

#define FOR(i,s,e) for (int i = int(s); i != int(e); i++)
#define REP(i,e) for (int i = 0; i != int(e); i++)
#define FORIT(i, A) for (auto i : A)
#define ISEQ(c) (c).begin(), (c).end()
#define PRINT(x) cout << (x) << endl
#define SZ(x) ((int)(x).size())

int main(int argc, char const *argv[])
{

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

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

using namespace std;

int counts(string num) {
	int count = 0;
	for (int i = 0; i < ; i++) {
		if (num[i] != "0") count++;
	}
	return count;
}

int main() {
	for (int a, b; cin >> a >> b && a && b) {
		string stream as;
		as << a;
		string stream bs;
		bs << b;
		cout << counts(as)+counts(bs) << endl;
	}
}

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

C++: #include <iostream>
#include <cstdio>
#include <iomanip>
#include <algorithm>
#include <cmath>
using namespace std;
const int M = 100000;
const double pi = 3.141592653589;

int main()
{
	int a, b;
	while (cin>>a>>b) {
		a = a + b;
		int count = 0;
		while (a > 0) {
			a /= 10;
			count++;
		}
		printf("%d\n", count);
	}
}

C++: #include<iostream>
#include<string.h>
#include<stdio.h>
using namespace std;
int main(){
int a,b,c;
char ans[100];
cin>>a>>b;
	sprintf(ans,"%d",a+b);
c=strlen(ans);
cout<<c<<endl;
return 0;
}

C++: #include <iostream>
#include <string>   
using namespace std;
 
int main(){
int a[2],i = 0,b,c = 1;

cin >> a[0] >> a[1];
b = a[0] + a[1];
while(b >= 10){
	b = b/10;
	c++;
}
cout<<c<<endl;

}

C++: #include<bits/stdc++.h>
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(x+y).length() << "\n";
    }
}

C++: #include<stdio.h>

int main()
{
    long long a,b,c;
    while(scanf("%lld%lld",&a,&b)==2)
    {
        c=a+b;
        int coun=0;
        while(c>0)
        {

            coun++;
            c/=10;
        }
        printf("%lld\n",coun);
    }
    return 0;
}