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 f(int c){
	int d = 1;
	
	while(c >= 10){
		c = c/10;
		d++;
	}
	
	cout << d << endl;
	return 0;
}

int main() {
	int i;
	for(i=0; i < 3; i++){
		int a;
		int b;
		cin >> a;
		cin >> b;
		
		int c = a + b;
		f(c);
	}
	
	return 0;
}

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

int main(void){
	int a,b,T,c,d,e,f,g,h,i,A=0;
	while(cin>>a>>b){
		T=a+b;
		
		c=T/1000000;
		if(c>=1) A=A+1;
		
		d=T/100000;
		if(d>=1)A=A+1;
		
		e=T/10000;
		if(e>=1)A=A+1;
		
		f=T/1000;
		if(f>=1)A=A+1;
		
		g=T/100;
		if(f>=1)A=A+1;
		
		h=T/10;
		if(h>=1)A=A+1;
		
		i=T/1;
		if(i>=1)A=A+1;
		
		cout<<A<<endl;
	}
	return 0;
}

C++: #import<cstdio>
int main(){int a,b,s;while(scanf("%d%d",&a,&b)!=EOF){a+=b,s=0;while(a>0,s++,a/=10);printf("%d\n",s);}}

C++: #include <iostream>
#include <string>   
using namespace std;
 
int main(){
int a[2],i = 0,b,c = 1;

cin >> a[0];
cin >> a[1];
b = a[0] + a[1];
while(b >= 10){
	b = b/10;
	c++;
}
cout<<c<<endl;

}

C++: #include<iostream>
#include<iomanip>
#include<cmath>
#include<string>
#include<vector>
#include<list>
#include<algorithm>
#include<map>
#include<set>
#include<queue>
#include<stack>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define mp make_pair
#define rep(i, n) for(int i=0;i<n;++i)
#define rrep(i, n) for(int i=n;i>=0;--i)
const int inf=1e9+7;
const ll mod=1e9+7;
const ll big=1e18;
const double PI=2*asin(1);

int main() {
  int A, B;
  int C;
  vector<int> ans;
  while(cin>>A>>B){
    C = A+B;
    int i=1;
    int ten=1;
    while(true){
      if(C/ten==0){
        cout<<i-1<<endl;
        break;
      }
      else{
        ten *= 10;
        i++;
      }
    }
  }
}

C++: #include <cstdio>
  
#define MAX 1000000
#define MIN 0
#define SIZE 200
  
int main() {
 int i,j;
 int a,b;
 int cnt = 0;
 int buf = 0;
 int sets[SIZE];
  
 while(scanf("%d %d",&a,&b) != EOF) {
  if((a < MIN) || (b > MAX)) {
   continue;
  }
   
  sets[cnt] = a + b;
  ++cnt;
 }
 
 for(i = 0;i <= cnt;++i) {
  for(j = MAX;j >= MIN;) {
   if((sets[i] / j) != 0) {
    ++buf;
    sets[i] -= (sets[i] / j) * j;
   }
   
   j /= 10;
  }
   
  buf = 0;
 }
 
 for(i = 0;i <= cnt;++i) {
  printf("%d\n",sets[i]);
 }
 
 return 0;
}

C++: #include <stdio.h>

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

C++: #include <iostream>
 
u_int getDigit(u_int n){
    u_int digit = 0;
     
    while(n > 0){
        n /= 10;
        ++digit;
    }
     
    return digit;
}
   
int main(){
    u_int a, b;
     
    while(std::cin >> a >> b){
        std::cout << getDigit(a + b) << std::endl;
    }
     
    return 0;
}

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

int main(){
	double a_heap[3];
	double b_heap[3];
	int digit[3];
	int count;
	for(int i=0;i<3;i++){
		cin >> a_heap[i] >> b_heap[i];
	}
	for(int i=0;i<3;i++){
		int num1 = 1;
		int j;
		for(j=1;;j++){
			num1 = 10 * num1;
		if((a_heap[i] + b_heap[i])/num1 < 1)
			break;
		}
		digit[i] = j;
	}
	for(int i=0;i<3;i++){
	cout << digit[i] << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <string>
#include <algorithm>

using namespace std;

int main (int argc, char *argv[]) {
    int a, b;
    while (scanf("%d %d", &a, &b)) {
        int sum = a + b;
        string str = to_string(sum);
        cout<<str.length()<<endl;
    }
    return 0;
}

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

int main(){
    int count = 0;
    int digit_num;
    int a[200],b[200];
    int sum;
    while(cin >> a[count] >> b[count]){
        if(a[count] >=0 && a[count] <= 1000000)
            if(b[count] >= 0 && b[count] <= 1000000){
                sum = a[count] + b[count];
                digit_num = 1;
                while((sum/10) != 0){
                    digit_num ++;
                    sum = sum / 10;
                }
                cout << digit_num<<endl;
                count++;
                if(count >200) break;
            }
    }
    return 0;
}

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

using namespace std;

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

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

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

C++: #include<stdio.h>

void lank(int,int);

int main(){
	int n,m;
	while(1){
		scanf("%d %d",&n,&m);
		lank(n,m);
	}
}

void lank(int a,int b){
	int i,sum=a+b;
	for(i=1;sum/10!=0;i++)sum/=10;
	printf("%d\n",i);
}

C++: #include <iostream>
using namespace std;
int main(){
    int a,b,c;
    do{
    cin >> a >> b;
    c = a+b;
    if (c>1000000)
        cout << "7" << endl;
    else if (c>100000)
        cout << "6" << endl;
    else if (c>10000)
        cout << "5" << endl;
    else if (c>1000)
        cout << "4" << endl;
    else if (c>100)
        cout << "3" << endl;
    else if (c>10)
        cout << "2" << endl;
    else
        cout << "1" << endl;
} while (true);
}

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

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

    
    return 0;
}

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

int main()
{
	while(1)
	{
	int a,b,c;
	stringstream s;

	cin >> a >> b;
	c = a+b;

	s << c;
	cout << s.str().size() << endl;
	}
	return 0;
}

C++: #include <stdio.h>

int order(int n) {
	int ord = 0;
	while (n > 0) {
		n /= 10;
		ord++;
	}
	return ord;
}

int main(void) {
	int a, b;
	while (scanf("%d%d", &a, &b) == 2) {
		printf("%d\n", order(a+b));
	}
	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;
}

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

int datas[2][200] ;
int datanum ;

int sum[200] ;
int solve[200] ;

int main()
{
	cin >> datanum ;

	for( int i = 0 ; i < datanum ; i ++ )
	{
		cin >> datas[0][i] ;
		cin >> datas[1][i] ;

		sum[i] = datas[0][i] + datas[1][i] ;
	}

	for( int i = 0 ; i < datanum ; i ++ )
	{
		for( int j = 1 ; j < 7 ; j ++ )
		{
			if( (sum[i] / 10*j) < 10 )
			{
				solve[i] = j+1 ;
				j = 10 ;

				cout << solve[i] << "\n" ;
			}
		}
	}
	return 0 ;
}

C++: #include<stdio.h>
int main()
{
int x,y,cou,w;
cou=0;w=0;
scanf("%d",&x);scanf("%d",&y);
w=x+y; 
while(1)
{
if(w/10==0){cou++;break;}
else {w=w/10; cou++;}
}
printf("%d\n",cou);
return 0;
}

C++: #include<iostream>
#include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
	int c,g,a,b;
	while(scanf("%d%d",&a,&b)!=EOF)
	{
		c=0;
		g=a+b;
		while(1)
		{
			if(g/10>=1)
				c++;	
			else 
				break;
			g/=10;
		}		
		cout<<c+1<<endl;
	}
	return 0;
}

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

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