Go: package main

import (
  "fmt"
  "unicode/utf8"
)


func main() {
  var a int
  var b int
  for _, err := fmt.Scan(&a, &b); err == nil; _, err = fmt.Scan(&a, &b) {
    fmt.Println(utf8.RuneCountInString(fmt.Sprint(a+b)))
  }
}

C++: #include "bits/stdc++.h"

#define REP(i,num) for(int i=0;i<(num);++i)
#define ALL(c) c.begin(),c.end()
#define PRINTALL(c) for(auto& x:c){cout<<x<<' ';}cout<<endl;
#define PAIRCOMP(c,comp) [](const pair<ll,ll>& lhs,const pair<ll,ll>& rhs){return lhs.c comp rhs.c;}

using namespace std;
using ll = long long;

constexpr ll atcoder_mod = 1e9+7;

template<typename T=int>
T in(){T x; cin >> x; return (x);}
template<typename T=int,typename C=vector<T>>
C vecin(int N){C x(N);REP(i,N){x[i]=in<T>();}return move(x);}

void vout(){cout << endl;}
template<typename Head,typename... Tail>
void vout(Head&& h,Tail&&... t){cout << ' ' << h;vout(forward<Tail>(t)...);}
void out(){cout << endl;}
template<typename Head,typename... Tail>
void out(Head&& h,Tail&&... t){cout << h;vout(forward<Tail>(t)...);}

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	int a,b;
	while(cin>>a){
		cin >> b;
		int c = a+b;
		int n=0;
		while(c){
			n++;
			c/=10;
		}
		out(n);
	}
	return 0;
}

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

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

C++: #include<iostream>
using namespace std;
  
int main(){
    int a, b;
    int sum, digit;

    while(cin >> a >> b){
        sum = a + b;
        digit = 0;
        while(sum){
            sum = sum \ 10;
            digit++;
        };
    cout << digit << endl;
    };
    return 0;
}

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

using namespace std;

void digitLength()
{
    int a, b;
    int number;
    
    while(cin>>a>>b) //input several test cases
    {
        number=log10(a+b)+1; //calculate the digit number; if can be divided by 10, then +1 
        cout<<number<<endl;
    }
   
    return;
}
  
int main(){
  
    digitLength();
    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>
    using namespace std;
    int main()
    {
        int n,m,sum,c=0;
        cin>>n>>m;
        sum=n+m;
        if(sum==0){
            c++;
        }
        while(sum!=0){
            sum=sum/10;
            c++;
        }
        cout<<c;
    }

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

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

C++: #include<stdio.h>
int main(void){
	int a,b,i,c,j;
	for(i=0;i<200;i++){
		scanf("%d %d",&a,&b);
		c=a+b;
		j=0;
		while(c!=0){
			c=c/10;
			j++;
		}
		printf("%d\n",j);
	}
	return 0;
}

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

int main()
{
int a=0,b=0,n[N],kaisu=0;

do{
 n[kaisu]=1;
 cin>>a>>b;
 if(a>=0 && b>=0 && a<=1000000 && b<=1000000)
 	{
	 a = a+b;
	 while(a>=10)
	 	{
		 a = a/10;
		 n[kaisu] += 1;
	 	}
 	}
 	kaisu++;
 	}while(kaisu<N && b!=999);

 for(int i=0 ; i<kaisu;i++)
  cout<<n[i]<<endl;
}

C++: #include<stdio.h>
int main(){
	int a,b,c,i,count;
	while(scanf("%d%d",&a,&b)){
		count=0;
		if(a>0 && b>0){
			c = a+b;
			for(i=1;i<=c;i *=10){
				count++;
			}
		}
			printf("%d\n",count);
	}
	return 0;
}

C++: #include<stdio.h>

int digit(int s){
	int d = 1;
	while(1){
		if(s >= 10){
			s = s/10;
			d++;
		}else{
			break;
		}
	}
	return d;
}


int main(){
	int a, b;

	while(scanf("%d %d", &a, &b) != EOF){
		printf("%d\n", digit(a + b));
	}

	return 0;
}

C++: #include <cstdio>
int main()
{
        int a,b,c;
        while(scanf("%d",&a)!=EOF)
        {
                scanf(" %d",&b);
                c=a+b;
                int cnt,i;
                i=1;
                for(cnt=0;;cnt++)
                {       
                        if(c/i==0)break;
                        i=i*10;
                }
                printf("%d\n",cnt);
        }
        
        return 0;
}

C++: #include<bits/stdc++.h>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<algorithm>
using namespace std;

/**
 * vector<int>ar(3);
 * for(auto&e:ar){
 *     scanf("%d",&e);
 * }
 * sort(ar.begin(),ar.end())
 * int sum=accumulate(ar.begin(),ar.end(),0);
 **/

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

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

int main(){
	// input
	int a, b, total, ans;
	while(cin >> a >> b && !cin.eof()){
		total = a + b;
		while(true){
			total /= 10;
			ans++;
			if(total == 0){
				break;
			}
		}
		cout << ans << endl;
	}

	return 0;
}

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

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

C++: #include<stdio.h>                                                                  
#include<iostream>                                                                 
                                                                                   
int main(void){                                                                    
  int x,y,z,keta=0;                                                                
  scanf("%d %d",&x,&y);                                                            
  z =x+y;                                                                          
  while(z>0){                                                                      
    z = z/10;                                                                      
    keta++;                                                                        
  }                                                                                
  std::cout << keta << std::endl;                                                  
  return 0;                                                                        
}

C++: #include <iostream>
  
using namespace std;  
  
// 入力  
int a, b;  
  
void solve()  
{  
    int res = 0;  
  
    a += b;  
  
    for (; a; a /= 10)  
        res++;  
  
    cout << res << endl;  
}  
  
int main()  
{  
    while (cin >> a >> b)  
        solve();  
  
    return 0;  
}

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

int main() {
	long a,b,c,ans;
	int i = 200;
	i--;
	while( i >= 0){
		cin >> a >> b;
		if(0 <= a  && b <= 1000000){
		ans = 0;
		c = a + b;
		while(c!=0){
		c = c / 10;

		++ans;
	}
	}
	cout << ans << endl;
	}
	return 0;
}

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

int count_digits(int n) {
  return static_cast<int>(floor(log10(n))) + 1;
}

int main() {
  int n, m;
  while (!std::cin.eof() && std::cin.peek() != '\n') {
    std::cin >> n >> m;
    std::cout << count_digits(n + m) << std::endl;
    while (isspace(std::cin.peek())) { std::cin.ignore(); }
  }
}

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 main(){
	int a_heap[3];
	int b_heap[3];
	int digit[3];
	int count;
	for(int i=0;i<3;i++){
		cin >> a_heap[i] >> b_heap[i];
		cout << endl;
	}
	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])%10 < 1)
			break;
		}
		digit[i] = j;
	}
	for(int i=0;i<3;i++){
	cout << digit[i] << endl;
	}
	return 0;
}