Go: package main

import (
	"bufio"
	"fmt"
	"math"
	"os"
	"strconv"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	return strconv.Atoi(nextString())

}

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		a, err := nextInt()
		if err != nil {
			break
		}
		b, _ := nextInt()

		s := a + b
		nDigits := int(math.Log10(float64(s))) + 1
		fmt.Println(nDigits)
	}
}

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

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int a,b;

int main(){
    while(cin>>a>>b){
        if(a==0)a++;
        if(b==0)b++;
        cout<<(int)log10(a)+(int)log10(b)+2<<endl;
    }
}

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

const unsigned int BUF_SIZE = 256;

int main(){
	int a,b;
	char buf[BUF_SIZE];

	while(fscanf(stdin,"%d %d",&a, &b) != EOF){
		std::cout << a + b << std::endl;
	}
}

C++: #include<iostream>
#include<cstdio>
#include<string>
int main(){
    int a, b;
    while(cin >> a >> b){
        //cin >> b;
        string s = to_string(a+b);
        printf("%d\n", s.length());
    }
}

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

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

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

using namespace std;

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

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

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

C++: #include<stdio.h>
int main(void)
{
	int i,j,temp,y[10];
	for(i=0;i<10;i++){
		scanf("%d",&y[i]);
	}
	for(i=0;i<10;i++){
		for(j=0;j<=10;j++){
			if(y[j]>=y[i]){
				temp=y[i];
				y[i]=y[j];
				y[j]=temp;
			}
		}
	}
	for(i=0;i<3;i++){
		printf("%d\n",y[i]);
	}
	return 0;
}

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

using namespace std;

int sum(int n){
int res = 1;
while(n / 10 != 0){
res++;
n/=10;
}

return res;
}

int main()
{
int a,b;
while(~scanf("%d %d",&a,&b)){
printf("%d\n",sum(a+b));
}

return 0;
}

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);
}