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 <cstdio>

int inline length(int x){
	int result = 0;
	do{
		result++;
		x /= 10;
	}
	while (x > 0);
	return result;
}

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

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

using namespace std;

#define Vi vector<int>
#define FOR(i,s,e) for (int i=s; i<e; i++)
#define ITER(v) v.begin(), v.end()

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

    int64_t a, b;
    int n;

    while (true) {
        cin >> a >> b;
        if (cin.eof()) { break; }
        int64_t sum = a + b;
        int count = 1;
        while (sum >= 10) {
            sum /= 10;
            count++;
        }
        cout << count << endl;
    }

    return 0;
}

C++: def digit n
 i = 0
 while n>0
  n = n/10
  i +=1
 end
 i
end

while n = gets
 a,b = n.chomp.split
 a,b = a.to_i,b.to_i
 
 puts digit a+b
end

C++: #include <iostream>

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

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

C++: #include <cstdio>
int main(){
 int d,n,a,b; 
 while(true){
  d=0;
  if (scanf("%d %d",&a,&b)==0) break;
  n=a+b;
  while(n>0) { d++, n/=10 };
  printf("%d\n",d);
 };
 return 0;
};

C++: //#include <iostream>
//using namespace std;
#include <stdio.h>
int main(){
  int a, b;

  while(scanf("%d %d", &a, &b ) != EOF){
    int c = a + b;
    int n = 1;
    while(1){
      if(c / 10 == 0) break;
      n++;
    }
    printf("%d\n", n);
    // cout << n << endl;
  }

  return 0;
}

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

C++: #include<iostream>

using namespace std;
 
int main(){
  int x[3],y[3],sum,i;
  int digit[3] = {0};

  for(i=0; i<3; ++i){
    cin >> x[i] >> y[i];
    //if(x[i] < 0 || 1000000 < x[i] || y[i] < 0 || 1000000 < y[i])
    //i = i-1;
  }

  for(i=0; i<3; ++i){
    sum = x[i] + y[i];

    if(sum == 0){
      digit[i] = 1;
    }

    while(sum != 0){
      sum = sum / 10;
      ++digit[i];
    }
  }

  for(i=0; i<3; ++i)
    cout << digit[i] << "\n";

    return 0;
}

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

int main()
{
  int a,b;

  cin>>a;
  cin>>b;

  if((a+b)/10==0)
    cout<<1<<endl;
  else if(0<(a+b)/10 && (a+b)/10<10)
    cout<<2<<endl;
  else if (0<(a+b)/100 && (a+b)/100<10)
    cout<<3<<endl;
  else if (0<(a+b)/1000 && (a+b)/1000<10)
    cout<<4<<endl;
  else if (0<(a+b)/10000 && (a+b)/10000<10)
    cout<<5<<endl;
  else if (0<(a+b)/100000 && (a+b)/100000<10)
    cout<<6<<endl;
  else if (0<(a+b)/1000000 && (a+b)/1000000<10)
    cout<<7<<endl;

  return 0;
}

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

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

  return 0;
}

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

int main()
{
    int a,b,sum,cnt;
    while(scanf("%d%d",&a,&b)!=EOF){
        sum=a+b;
        cnt=0;
        while(sum>0){
            cnt++;
            sum/=10;
        }
        cout << cnt << endl;
    }
    return 0;
}

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

using namespace std;

int main() {
        int a, b;
        while(cin>>a>>b) {
                int c=a+b;
                for(int i=1; i<=6; i++) {
                        int power = pow(10, i);
                        if(c/power==0) {
                                cout << i << endl;
                                break;
                        }
                }
        }
        return 0;
}

C++: #include<cstdio>
#include<cmath>
using namespace std;
int main(){
    int a,b;
    while(scanf("%d %d",&a,&b)!=EOF)
        printf("%d\n",(int)(log10(a+b)));
}

C++: #include <iostream>
using namespace std;
int main(void){
  long a, b, sum, count;
  
  while(true) {
    cin >> a >> b;
    
    count = 0;
    sum = a + b;
    if (sum == 0) {
      count++;
    } else {
      while(sum != 0) {
        sum /= 10;
        count++;
      }
    }
    cout << count << endl;
    
    if ( cin.eof() ) { break; }
  }
}

C++: #include <iostream>

using namespace std;

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

C++: #include<cstdio>
#include<string>
int main(){
int i;
for(i=0;i<3;i++){
  int a, b;
scanf("%d%d", &a, &b);
a+=b;
std::string c=std::to_string(a);
printf("%d\n", c.length());
}
}

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

int main()
{
	int a,b,sum;
	int count = 1;
	
	cin >> a >> b;

	sum = a + b;

	sum = sum / 10;

	while(sum > 1){

		sum = sum / 10;
		count++;
	}

	cout << count << endl;

	

	return 0;
}

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

int main(){

	int a;
	int b;

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

C++: #include <cstdio>
#include <cmath>
int main() {
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF) {
		printf("%d\n",(int)log10((double)a+b)+1);
	}
}

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

using namespace std;

int main() {
        int a, b;
        while(cin>>a>>b) {
                int c=a+b;
                for(int i=1; i<=8; i++) {
                        int power = pow(10, i);
                        if(c/power==0) {
                                cout << i << endl;
                                break;
                        }
                }
        }
        return 0;
}

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

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

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

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

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

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

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

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555545";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}