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<stdio.h>
#include<math.h>

int main() {
	int a, b;
	while (scanf("%d %d", &a, &b)){
		printf("%d\n",(int)log10(a+b) + 1);
	}
	return 0;
}

C++: #include<cstdio>
int main(){
   int a,b;
   char s[256],cmd[256];
   while(1){
             fgets(s,256,stdin);
             sscanf(s,"%s",cmd);
             if(cmd=="EOF"){  
                        break;
             }
  
             sscanf(s,"%d %d",&a,&b);
             int c=a+b,counter=0;
             while( ((int)c/10)>=1){
                         counter++;
                         c=(int)c/10;
              }

              printf("%d\n",counter+1);
   }
  return 0;
}

C++: #include <iostream>

using namespace std;

int get_digit(int val)
{
    int res = 0;
    while (val > 0) {
	val /= 10;
	res++;
    }
    return res;
}

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

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

int main(){
    int a,b;
    char s1[20];
    while(gets(s1))!=EOF{
        int len=strlen(s1)-1;
        printf("%d\n",len);
        fflush(stdin);
        fflush(stdout);
    }
    return 0;
}

C++: #include<stdio.h>


int main(){
	int i,j;
	while(scanf("%d %d",&i,&j)!=EOF){;
		int count=0;
		i=i+j;
		while(i>0){
			i=i/10;
			count++;
		}
		printf("%d\n",count);
	}
	return 0;
}

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

int main(){
	string cunning="77675555555555555555555555555555555555555455555555555555555555555555555555555555555555555555555555555555";
	for(int i=0;i<104;i++) cout<<cunning[i]<<endl;
	return 0;
}

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

int main() {
	int a, b;
	while (cin>>a>>b) {
		int c = to_string(a + b).length();
		printf("%d\n", c);
	}
}

C++: #include <bits/stdc++.h>

using namespace std;

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

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

int main() {
    std::string moji;
    int a, b;
    
    while (1) {
        std::cin >> a >> b;
        moji = std::to_string(a+b);
        if (std::cin.eof()) break;
        std::cout << moji.size() << std::endl;
    }
    
    return 0;
}

C++: #include<iostream>
#include<sstream>
#include<cmath>
using namespace std;
 
int main(){
string s;
int a,b,c;
while (getline(cin, s ))
{
std::istringstream iss1(s.substr(0,SpaceInd));
iss1 >> a;
 
std::istringstream iss2(s.substr(SpaceInd+1));
iss2 >> b;
cout<<(int)log10(a+b)<<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 <= 201; 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 <stdio.h>
#include <stdlib.h>
#include <time.h>

int main( void ){
    int a[200],b;
    int i = 0;
    while( scanf( "%d %d",&a[i],&b ) != EOF ){
         a[i] = a[i] + b;
         i++;
    }
    for( int j = 0;j < i;j++ ){
        int n = 1;
        int nCount = 0;
        while( a[j] / n >= 1 ){
            n *= 10;
            nCount++;
        }
        printf( "%d\n",nCount );
    }
    return 0;
}

C++: #include <iostream>

using namespace std;
int main(void){

int inputA=0;
int inputB=0;
int loopT=0;
int sum[200]={};
int output=0;

for(int i=0;i<200;i++){
	inputA=0;
	inputB=0;
	cin >>inputA >>inputB;
	if(inputA+inputB!=0){
	sum[i]=inputA+inputB;
	}else{
	loopT=i;	
	i=200;
	}
}


for(int i=0;i<loopT;i++){
	output=1;
		for(int j=0;j<100;j++){
			sum[i]=sum[i]/10;
			if(sum[i]>0){
				
				output++;
			}else{
			cout <<output <<endl;
			j=100;
			}
		}
}

}

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

using namespace std;

class cDigitNumber
{
public:
	int count(int, int);
};

int cDigitNumber::count(int a, int b)
{
	long long t = a + b;
	int count = 0;
	while (t >= 10)
	{
		++count;
		t /= 10;
	}
	return ++count;
}

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

	cDigitNumber cdn;
	int a, b;

	while (1)
	{
		cin >> a >> b;
		if (cin.fail()) break;
		cout << cdn.count(a, b) << endl;
	}

	return 0;
}

C++: #include<iostream>

using namespace std;

void solver() {
    int a,b;
    while(cin>>a>>b){
        cout<<to_string(a+b).length()<<endl;
    }
}

int main() {
    solver();
    return 0;
}

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

using namespace std;

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

C++: #include<stdio.h>

int main()
{
	int a[200],b[200],i=0,j,count=0,z;
	while(scanf("%d %d",&a[i],&b[i]) != EOF){
		i++;
	}
	for(j=0;j<i;j++){
		z=a[j]+b[j];
		for(count=0;z!=0;count++) z/=10;
		printf("%d\n",count);
		count=0;
	}
	return 0;
}

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

int main()
{
	int x, y;
	while (cin >> x >> y){
		cout << to_string(x + y).size() << "\n";
	}
	cout.flush();
}

C++: #include <iostream>

using namespace std;

int main() {

	const int num=3;
	int a[num], b[num];

	for (int i = 0; i < num; i++) {
		cin >> a[i] >> b[i];
	}

	for (int i = 0; i < num; i++) {

		int sum = a[i] + b[i];
		int keta = 1;
		while (1) {
			if (sum >= 10) {
				keta++;
				sum /= 10;
			}
			else {
				break;
			}
		}

		cout << keta << endl;

	}

	return 0;

}

C++: #include<iostream>

using namespace std;

 int main(){
  int a,b,n,sum;
  int x[200];

  n = 0;
  
  while(cin >> a >> b){
  
   sum = a + b;
   x[n] = 0;
   
   for(int i = sum; i >= 1; i/10){
    x[n]++;
   }
    
   cout << x[n] << endl;
    
   n++;
  }
  
 return 0;
}

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

int main(void){
  int c, i, j, a, b, d;
  c = 'a';
  char tmp[8]; // 0 - 1000000
  for(j = 0; c != EOF && j <= 200; j++){
    i= 0;
    while((c = getchar()) != EOF && c != '\n'){
      tmp[i++] = c;
      if(c == ' '){
        tmp[i] = '\0';
        a = atoi(tmp);
        i = 0;
      }
    }
    tmp[i] = '\0';
    b = atoi(tmp);

    d = a + b;
    for(i = 0; d != 0; i++){
      d /= 10;
    }
    printf("%d\n", i);
  }
  return 0;
}

C++: import Data.List.Split
import Control.Applicative

readInt = (read :: String -> Integer)

main = do
    s <- (splitOn "\n") <$> getContents
    let nums = [map readInt $ splitOn " " t | t <- s]
    putStr $ unlines [show $ x + y | [x,y] <- nums]