Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int

		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}

		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

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

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

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

int main() {
	int a, b;
	int D[200] = { 0 };
	for (int i = 0; i < 200; ++i) {
		int digits = 1;
		cin >> a >> b;
		int n = a + b;
		n /= 10;
		while (n) {
			++digits;
			n /= 10;
		}
		D[i] = digits;
	}

	for (int i = 0; i < 200; ++i) {
		if (D[i] == 0) {
		}
		else {
			cout << D[i] << endl;
 		}
	}
}

C++: #include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
   char sum[1000];
int main()
{

    int a,b,cou,t;
    while(cin>>a>>b)
    {
        sprintf(sum,"%d",a+b);
        printf("%d\n",strlen(sum));


    }

    return 0;
}

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

using namespace std;

int main(){
  int sum, ans, n1, n2;
  scanf("%d%d", &n1, &n2);
  sum = n1+n2;
  ans = (int)log10((double)sum) + 1;
  cout<<ans<<endl;
  return 0;
}

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

using namespace std;
 
int main() {
    int a,b;
   while(cin>>a>>b) {
     a = log10(a+b) +1;
cout<<a<<endl;
}
return 0;
}

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

int main(){
  int a,b;
  int an[1000];
  int con[1000];
  int i=0,j,k;

  while(cin>>a>>b){
    an[i] =a + b;
    con[i] = 1;
    while(an[i]>=10){
      an[i] /= 10;
      con[i]++;
    }
    i++;
      }
  cout<<endl;
  for(j=0;j<i;j++){
    cout<<con[j]<<endl;
  }

  return 0;

}

C++: #include<iostream>
#include<math.h>
using namespace std;
int main()
{
	float a,b,sum;
	int cont=0;
	cin>>a;cin>>b;
	sum=a+b;
	do
	{
		sum=sum/10;
		cont++;
	}while(floor(sqrt(sum))!=0);
	cout<<cont<<endl;
	return 0;
}

C++: 
A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except ValueError:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))

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

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

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

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

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

int main() {
	int a, b, ab, c = 0;


	while (cin >> a >> b) {
		ab = a + b;
		for (ab; ab > 0; ab /= 10) {
			c++;
		}
		cout<<c<<endl;
		c = 0;
	}
	return 0;
}

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

int main()
{
	int a, b, sum, result=0;
	do{
		scanf("%d %d", &a, &b);
	}while(a < 0 || b < 0);
	sum = a + b;
	while (sum > 0){
		sum /= 10;
		result++;
	}
	cout << result;
	return 0;
}

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

int main(){

	array<int, 6> t{ {10, 100, 1000, 10000, 100000, 1000000} };
	int a, b;
	while (cin >> a >> b) {
		 int sum;
		 
		 sum = a + b;
		 auto result = find_if(t.begin(), t.end(), [sum](const int x){return sum < x; });
		 auto output = result - t.begin() + 1;
		 cout << output << endl;
	}


	return 0;
}

C++: #include <iostream>

using namespace std;

int countDigits(int n)
{
	int digits = 0;
	while (n>0) {
		n /= 10; digits++;
	}
	
	return digits;
}

int main()
{
	int a, b;
	while ( (cin >> a) && (cin >> b) ) {
		cout << countDigits(a+b) << endl;
	}
	
	return 0;
}

C++: #include "stdafx.h"
#include <iostream>


using namespace std;

int a, b;

void solve()
{
	int res = 0;

	a += b;

	for (; a; a /= 10)
		res++;

	cout << res << endl;
}

int main()
{
	while (cin >> a >> b)
		solve();

	return 0;
}

C++: File Edit Options Buffers Tools C++ Development Help                               
#include<iostream>                                                                 
#include<stdio.h>                                                                  
                                                                                   
                                                                                   
int main(void){                                                                    
  int x,y,z,keta=0;                                                                
  scanf("%d %d",&x,&y);                                                            
  z =x+y;                                                                          
  while(z>0){                                                                      
    z = z/10;                                                                      
    keta++;                                                                        
  }                                                                                
  std::cout << keta << std::endl;                                                  
  return 0;                                                                        
}

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

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

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

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

int main()
{ 
	int i1, i2;
	cin >> i1 >> i2;
	i1 += i2;
	i2 = 0;
	while (i1) {
		i2++;
		i1 /= 10;
	}
	cout << i2 << endl;
    return 0;
}

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

int main() {
	long long int a, b, c;
	int x;
	bool flg = true;

	while (1) {
		cin>>a;
		if (a==EOF)
			break;
		cin>>b;

		c=a+b;

		x = 1;
		flg = true;
		while (flg) {
			if ((c=c/10)>0)
				x++;
			else
				flg = false;
		}
		cout<<x<<endl;
	}
	return 0;
}

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

int main()
{
    int a;
    int b;
    int sum;
    int digit;
    bool flag = true;
    while (flag) {
        std::cin >> a >> b;
        if (a == 0 && b == 0) {
            flag = false;
            break;
        } else {
            sum = a + b;
            digit = 0;
            while (sum != 0) {
                sum = sum / 10;
                digit++;
            }
            std::cout << digit << std::endl;
        }
    }
    return 0;
}

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

using namespace std;

int main()
{
    int a;
    int b;
    int sum;
    while(cin >> a >> b)
    {
        sum = a + b;
        string sum = to_string(a + b);
        cout << sum.length() << endl;
    }
}

C++: #include "iostream"
using namespace std;

int main(void)
{
    long num1, num2;

    while (cin >> num1 >> num2) {

        num1 += num2;

        num2 = 0;
        while(num1 > 0) {
            num2++;
            num1 /= 10;
        } 

        cout << num2 << endl;
    }
    
    return 0;
}