Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	"unicode/utf8"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var strs []string
	var a, b, sum int64
	var digits int
	for scanner.Scan() {
		strs = strings.Split(scanner.Text(), " ")
		a, _ = strconv.ParseInt(strs[0], 10, 64)
		b, _ = strconv.ParseInt(strs[1], 10, 64)

		sum = a + b
		// goでlen(string)はbyte数が返る
		digits = utf8.RuneCountInString(strconv.FormatInt(sum, 10))

		fmt.Printf("%d\n", digits)
	}
}

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]

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

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

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

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

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

using namespace std;

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

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

int main()
{
	int i,j ;
	while( cin >> i >> j )
	{
		i += j ;
		int count ;

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

		cout << count << endl ;
	}

	return 0 ;
}

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

int f(int c){
	int d = 1;
	
	while(c >= 10){
		c = c/10;
		d++;
	}
	
	cout << d << endl;
	return 0;
}

int main() {
	int a;
	while(cin>>a){
		int b;
		cin >> b;
		
		int c = a + b;
		f(c);
	}
	
	return 0;
}

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

int main(){
    int a,b,c,i;
	for(int j=0;j<250;j++){
		cin >> a >> b;
		c = a+b;
		for(i=1;true;i++){
			c = c/10;
			if(c==0)break;
		}
		cout << i << endl;
	}

    
    return 0;
}

C++: #include<stdio.h>
int main(){
	int x,y,i;
	for(i=0;i<200;i++){
	scanf("%d %d",&x,&y);
	if((x+y)==0) printf("0\n");
	else if((x+y)<10) printf("1\n");
	else if((x+y)<100) printf("2\n");
	else if((x+y)<1000) printf("3\n");
	else if((x+y)<10000) printf("4\n");
	else if((x+y)<100000) printf("5\n");
	else if((x+y)<1000000) printf("6\n");
	else printf("7\n");
	}
	return 0;
}

C++: #include<stdio.h>


int main(){
	char a[21];
	char b[21];
	int A;
	int B;
	int i;
	int l=1;
	fgets(a,sizeof(a),stdin);
	fgets(b,sizeof(b),stdin);
	sscanf(a,"%d", &A);
	sscanf(b,"%d", &B);
	i=A+B;
	while((i  >= 10)){
		i=i/10;
		l=l+1;
	}
	printf("%d" ,l);
}

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

int get_number_of_digits(int num)
{
    if(num == 0)
        return 1;
        
    int digit = 0;
    while(num != 0){
        num /= 10;
        ++digit;
    }
    return digit;
}

int main()
{
    const int num_of_data = 200;
    const int min = 0;
    const int max = 1000000;
    
    int a, b, i = 0;
    //std::cout << num_of_data << "個のまでの整数データa bの入力" << std::endl;
    while(std::cin >> a >> b && i < 200){
        if(min <= a && a <= max && min <= b && b <= max){
            std::cout << get_number_of_digits(a + b) << std::endl;
            ++i;
        }
    }
    
    return 0;
}

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

int i,j,a,b,c,ans=0;

int main(){
	scanf("%d %d",&a,&b);
	c=a+b;
	while(c!=0)c=c/10,ans++;
	printf("%d",ans);
	
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
  int a;
  int b;
  int k;//足した和
  int p;//引く数 
  int r;

  for(;;){
    cin >> a >> b;
    k=a+b;
    for(int i=0;i<1000001;i++){
      p=1;
      for(int j=1;j<i;j++){
	p=p*10;
      }
    
      if(k<p){
	cout << i-1 << endl;
	i=99999999;
      }	 
    }
  }
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
	int t=60000;
	for(int i=t;i;i--){
		for(int j=i;j;j--){
			if(i+j==2)a+=b;
		}
	}
	int cnt=0;
	while(a)a/=10,cnt++;
	cout<<cnt<<endl;
	}
	return 0;
}

C++: #include <stdio.h>

using namespace std;


int main(){
	int a,b,count,s;

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

    return 0;
}

C++: #include <iostream>

using namespace std;
int main(){
	int n,m,sum,count;
	for(int i=1;cin.eof()==false;i++){
		cin >> n >> m;
		sum = n + m;
		cout << sum << endl;
		count = 0;
		while(sum!=0){
			sum /= 10;
			count++;
		}
		cout << count << endl;
	}
}

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

using namespace std;

int main(){
	int a, b;
	int sum=0;

	while(cin >> a >> b){

	sum = log10(a+b) +1;
	

		cout << sum << endl;
	}
}

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

int main(){
int a,b;
while(cin>>a>>b){
cout<<(int)(log((double)a+b)-1)<<endl;
}

return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
    long int i,j,k,l=0;

    while(cin>>i>>j)
    {
    k=i+j;
    //cout<<k;
    while(k!=0)
    {
        k=k/10;
        l+=1;
    }
    cout<<l<<endl;
    l=0;
    }
    return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <math.h>
#include <vector>
#include <queue>
#include <algorithm>
#include <iterator>
#include <sstream>
#include <string>
using namespace std;
#define rep(I,N) for(int I = 0; I < (int)(N); I++)
#define FIN(V) cout<<V<<endl
#define pb push_back
#define INF (1 << 30)
typedef pair<int, int> P;
typedef long long ll;
typedef priority_queue<int> pq;

int main(void){
	int s;
	while(cin>>s){
		int a, b;
		cin >> a >> b;
		int c = a + b;
		stringstream ss;
		string s;
		ss << c;
		s = ss.str();
		cout << s.size() << endl;
	}


	return 0;	
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
int main() {
	int a, b;
	while (std::cin >> a >> b) {
		int sum,ans=1;
		sum = a + b;
		for (int i = 10; !(sum / i==0); i*=10) {
			ans += 1;
		}
		std::cout << ans << std::endl;
	}
}

C++: #include <iostream>

using namespace std;

int main(void){

  int a,b;

  while(1){

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

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