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>
using namespace std;

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

C++: #include <bits/stdc++.h>
using namespace std;
int main()
{
    int digit{0} , digit1{0} , x , y;

    cin>>x>>y;

    while(x > 0 || y > 0){

      if(x > 0){
        x/=10;
        digit++;
      }
      if(y > 0){
        y/=10;
        digit1++;
      }

    }

    cout<<digit+digit1;

    return 0;
}

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

int main(){
	int a, b;
	while(cin >> a >> b) {
		cout << ::to_string(a + b).length() << endl;
	}
	return 0;
}

C++: #include <iostream>
int main(void){
	int a,b;
	while(std::cin>>a>>b){
		a+=b;
		b=0;
		do{b++,a/=10;}while(a);
		std::cout<<b<<"\n";
	}
}

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

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

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

int main() {
	// your code goes here
	long a,b,c,k;
	while(cin >> a >>b){
		k=0;
		c=a+b;
	
		while(c){
			c/=10;
			k++;
		}
	
		cout<<k<<endl;
	}
	
	return 0;
}

C++: #include <iostream>

int main(int argc, char **argv) {
	int a, b, sum, digit = 0;
	std::cin >> a >> b;
	sum = a + b;
	
	while(sum != 0) {
		sum /= 10;
		digit += 1;
	}
	std::cout << digit << std::endl;

}

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

C++: #include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <deque>
#include <algorithm>
#include <iomanip>
#include <functional>

#define REP(i, n) for(int i = 0;i < (n); i++)
#define REP2(i, x, n) for(int i = (x); i < (n); i++)
#define REPR(i, n) for(int i = (n); i >= 0; i--)

#define ALL(a) (a).begin(),(a).end()
#define SORT(c) sort((c).begin(),(c).end())
#define DESCSORT(c) sort(c.begin(), c.end(), greater<int>())

#define LL long long int
#define LD long double

#define PI 3.14159265358979

using namespace std;

//================================================
int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	
	int A, B;
	while (cin >> A >> B) cout << (int)log10(A + B) + 1 << "\n";
	return 0;
}

C++: #include <iostream>
using namespace std;
int i,a,b;

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

C++: #include<iostream>
#include<stdio.h>
using namespace std;
int main(){
	int a,b,c,i;
	while(scanf("%d %d",&a,&b) != EOF){
		c = a + b;
		for(i = 0; c != 0; i++){
			c /= 10;
		}
		cout << i << 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];
        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 <stdio.h>
int main(void){
	int a[11]={0},b,c,i,j;
	while(scanf("%d %d",&b,&c)!=EOF){
	printf("%d\n",b+c);
	}
}

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

int main()
{
    int a, b;
    while (1) {

        cin >> a >> b;
        if (a == 0 && b == 0)
            break;
        int c = a + b;
        int ans = 0;
        while (c != 0)
        {
            c /= 10;
            ans++;
        }
        cout << ans << endl;
    }
    return 0;
}

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

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

	while (cin >> a >> b)
	{
		count = 0;
		sum = a + b;
		while (sum != 0)
		{
			sum /= 10;
			count++;
		}
		cout << count << endl;;
	}
	return 0;
}

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



int main() {

//変数の宣言

	int a,b,sum,i=0;



/////メイン処理/////


	while(cin>>a>>b){ 
//入力
		sum = a + b;
//桁数の計算
	
		while(1){
			if (pow(10,i)<=sum && pow(10,i+1) > sum){
				cout << i+1 <<endl;
				break;
			}
			i++;
		}
		
		i = 0;
	}
	
	
	return 0;
}

C++: #include<cstdio>
using namespace std;
int main(){
	int a,b;
	while(scanf("%d %d",&a,&b)){
		char c[255];
		printf("%d\n",sprintf(c,"%d",a+b));
	}
	return 0;
}

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

using namespace std;

int main() {
	int a, b;
	while (scanf("%d%d", &a, &b) != EOF) {
		a += b, b = 0;
		while (a) ++b, a /= 10;
		printf ("%d\n", b); 
	}
	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;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		printf("%d\n", ans[cou]);

		++cou;
	}
	for (i = 0; i < cou; ++i) {
		printf("%d\n", ans[i]);
	}
}

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

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> 
#include <cstdio>
#include <sstream>

int main() {
  int a,b;
  while(scanf("%d %d", &a, &b) != EOF) {
    std::stringstream ss;
    ss << a+b;
    std::cout << ss.str().length() << std::endl;
  }
}

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

using namespace std;


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

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

int main(){

  int a, b;
  int temp;
  int i=0;
  int j=0;
  int n[200];

  while( cin >> a, b ) {
    n[i]=0;
    temp = a+b;
    while(temp!=0){
      n[i]++;
      temp = temp/10;
    }
    if(i == 199){
      break;
    }
    i++;
  }

  while(cout << n[j]){
    j++;
  }

  return 0;
}

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

int main(){
	int a, b, n, c = 1;
	cin >> a >> b;
	n = a + b;
	while( (n = n / 10) != 0 )
		++c;

	cout << c << "\n";
	
	return 0;
}

C++: #include<stdio.h>

int main(void)
{
	int high[10]={1819,2003,876,2840,1723,1673,3776,2848,1592,922};
	int x,max,time;


	for(time=1;time<=3;time)
	{
		max=0;

		for(x=0;x<10;x++)
		{
			if(max<high[x])
			{
				max=high[x];
			}
		}
		for(x=0;x<10;x++)
		{
			if(max==high[x])
			{
				printf("%d\n",high[x]);
				high[x]=0;
				time++;
			}
		}
	}

	return 0;
}