Go: package main

import (
	"fmt"
	"strconv"
)

func main() {
	result := make([]int, 0, 200)

	for {
		var a, b int
		scanCount, _ := fmt.Scanf("%d %d", &a, &b)
		if scanCount == 2 {
			result = append(result, a+b)
		} else {
			break
		}
	}

	for _, v := range result {
		length := len(strconv.Itoa(v))

		fmt.Println(length)
	}
}

C++: #include <stdio.h>

// 再帰関数
/*
int keta(int n) {
	if (n < 10)
		return 1;

	return keta(n / 10) + 1;
}
*/

int keta(int n) {
	int ret = 1;

	while (n > 9) {
		n /= 10;
		++ret;
	}

	return ret;
}

/*
int keta(int n) {
	int ret;
	char str[100];

	sprintf(&str[0], "%d", n);

	for (ret = 0; str[ret]; ++ret);

	return ret;
}
*/

int main() {
	int a, b, c;

	while (scanf("%d%d", &a, &b) != EOF) {
		c = a + b;
		printf("%d", keta(c));
		puts("");
	}
	return 0;
}

C++: #include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int a,b;
	cin >> a>>b;
string stream ss;
  ss << number;
   string x=ss.str();
cout<<x.size()<<endl;
return 0;
}
string IntToString(int number)
{
  string stream ss;
  ss << number;
  return ss.str();
}

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

int main(void){
	int a,b,dig;
	double sum,test;
	std::cin >> a >> b;
	sum = (double)a+(double)b;
	test = floor(log(sum)/log(9.99999999));
	std::cout << test+1 << "\n";
	return 0;
}

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

int keta(int i){
	int k=1;
	while(i>=10){
		k++;
		i=i/10;
	}
	return k;
}

int main(){
	while(!cin.eof()){
	int a,b;
	cin >> a >> b;
	cout << keta(a+b) << endl;
	}
	return 0;
}

C++: #include<stdio.h> 
#include<math.h>
int main() 
{ 
      int a,b; 
      while(scanf("%d%d",&a,&b)!=EOF) 
      { 
         int x=a+b; 
         int cnt=0; 
         while(x) 
           { 
		      cnt++; 
              x/=10; 
           } 
         printf("%d\n",cnt); 
      } 
      return 0; 
}

C++: #include<cstdio>
#include<string.h>
int main(){
   int a,b;
   char s[256],cmd[256];
   while(1){
             fgets(s,256,stdin);
             sscanf(s,"%s",cmd);
             if(strcmp(cmd,"EOF")==0){  
                        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>
#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>

using namespace std;

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    int a, b;
    while(cin>>a>>b) {
        a+=b;
        for(b=1; (a/=10)!=0; ++b);
        cout<<b<<'\n';
    }
    return 0;
}

C++: #include<iostream>
#include<string>
using namespace std;
int main() {
	int a, b;
	while (cin >> a >> b) {
		cout << to_string(a + b).length() << endl;
	}
}

C++: #include <stdio.h>

int main(){

long a,b,i,n;

while(scanf("%ld",&a)!=EOF){

scanf("%ld",&b);

n = a+b;

for(i=1;i<10;i++){

 n = n/10;

if(n==0) break;

}

printf("%ld\n",i);

}


}

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

int main(){
  int l[200];
  int m[200];
  
  for(int i=0;i<200;i++){
    if(cin.eof()){break;}
    cin >> l[i];
    cin >> m[i];
  } 
  
  for(int j=0;l[j]>0;j++){
  cout<< (int)log10(l[j]+m[j])+1 << endl;
  }
  return 0;
}

C++: #include <stdio.h>

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



 return 0;
}

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

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

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

int main(void){
	int a,b;
	int i;

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

C++: #include<iostream>

using namespace std;

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

C++: #include <iostream>
using namespace std;
int main (){
  int a;
  int b;
  int k;
  int h;
  for(;;){
  cin >>a>>b;
  k=a+b;
  h=0;
  if (k<10&&h==0){
      cout << "1"<<endl;
      h=1;
  }
  if (k<100&&h==0){
    cout << "2"<<endl;
    h=1;
      }
  if (k<1000&&h==0){
    cout << "3"<<endl;
    h=1;
      }
  if (k<10000&&h==0){
    cout << "4"<<endl;
    h=1;
      }
  if (k<100000&&h==0){
    cout << "5"<<endl;
    h=1;
      }
  if (k<1000000&&h==0){
    cout << "6"<<endl;
    h=1;
      }
  if (k<10000000&&h==0){
    cout << "7"<<endl;
    h=1;
      }
  if (k<100000000&&h==0){
    cout << "8"<<endl;
    h=1;
      }
  if (k<1000000000&&h==0){
    cout << "9"<<endl;
    h=1;
      }
  if (k<10000000000&&h==0){
    cout << "10"<<endl;
    h=1;
      }
  }
}

C++: #include <iostream>

int main(int argc, const char * argv[]) {
    
    std::string a, b ;
    
    
    while ( std::cin >> a >> b ) {
        printf("%lu\n", a.length() + b.length()) ;
    }
    
    return 0;
}

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


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

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

int main(){
  int a,b;
  int n = 0;
  int k = 1;
  int i = 0;
  int x[200]={};
   
    
    
  while(i < 200 && cin >> a >> b){
      
      //条件に合わないデータの判定
      if(a < 0 || a > 1000000 || b < 0 || b > 1000000){
          cout << "データを入力し直してください!!" << endl;
          break;
      }
      
      else{
          i++;
          n = a+b;
          
    //桁数判定部分
    while(n/10 !=0){
        k++;
        n = n/10;
    }
          x[i-1] = k;
          k = 1;
      }
  }
    
    //表示部分
    for(int j = 0;j < i;j++)
        cout << x[j] << endl;
    
  return 0;
}

C++: #include<iostream>

int main(){
  int a,b;
  std::cin >> a >> b;
  int sum = a + b;
  int i = 0;
  do{
    sum /= 10;
    i++;
  }while(sum > 0);
  std::cout << i << std::endl;
  return 0;
}

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

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

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

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

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  int ans[201];
  int cnt=0;
  while(cin>>a>>b){
    int temp=a+b;
    int n=9;
    int count=1;
    while(1){
      if(n>=temp){
	break;
      }else{
	count++;
	n=n*10+9;
      }
    }
    ans[cnt]=count;
    cnt++;
  }
  for(int i=0;i<cnt;i++){
    cout<<ans[i]<<endl;
  }
  return 0;
}