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<iostream>
#include<cstdio>
using namespace std;
int main(){
 
  int a,b;
  while(1){
	  scanf("%d %d",&a,&b);
  int i = 0;
  a = a + b;
  while(a > 0){
    a = a / 10;
    i++;
      }
 
  cout << i << endl;
 
  }



}

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

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

C++: #include <bits/stdc++.h>
#include <stdlib.h>
#define INF 114514810
#define FOR(i, r, n) for(int i=(r); i<(n); i++) 
#define REP(i, n) FOR(i, (0), n)
template<typename T>
void remove(std::vector<T>& vector, unsigned int index)
{
	vector.erase(vector.begin() + index);
}

using namespace std;

int n=0, a, b;

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

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

int main(){
	cout << "Hello, world!" << endl;
}

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

int main(void){
	int a,b,dig,i;
	double sum;
	while(1){
		std::cin >> a >> b;
		if(a=='EOF') break;
		sum = (double)a+(double)b;
		dig = floor(log(sum)/log(10.0));
		std::cout << dig+1 << "\n";
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
	int a[500], b[500],sum[500],d[500],k[500];
	int i = 0;
	k[500] = 0;
	while (1) {
		cin >> a[i] >> b[i];
		sum[i] = a[i] + b[i];
		while (!sum[i]) {
			sum[i] /= 10;
			k[i]++;
		}
		if (a[i] == 0 && b[i] == 0)break;
		i++;
	}
	while (!k[i]) {
		cout << k[i] << endl;
	}
	return 0;
}

C++: /*
C++ ???????????????????????????????????¬??????
??????AOJ-ITP1??????????????????
*/
#define _USE_MATH_DEFINES

#include <iostream> // ?¨??????\??????
#include <fstream>  // ??????????????\??????
#include <string>   // ???????????¢???
#include <vector>   // ???????????????
#include <cmath>    // ??°??????
#include <iomanip>  // stream???????????¢???
#include <algorithm>// max??¢??°??????

using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;        // ????´???°????????????????????????
using std::fixed;         // ???????????????????¨???????????????????????????????
using std::setprecision;  // ?????°????°???°?????\???????????°????????????????????¨????????\???

int main() {
	int a, b, c;
	int count;
	while (cin >> a >> b)
	{
		// ??\???
		c = a + b;
		count = 0;

		// ?????°??????
		do
		{
			c = c / 10;
			count++;
		} while (c > 0);
		cout << count << endl;
	}

	return 0;
}

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

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

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

    while (std::cin >> a >> b) {
        std::cout << std::to_string(a + b).size() << std::endl;
    } 

    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;
string ss;
  ss << a+b;
   string x=ss.str();
cout<<x.size()<<endl;
return 0;
}

C++: #include <algorithm>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <cctype>
#include <iostream>
#include <set>
#include <string>
#include <queue>
#include <map>
using namespace std;
int size(string x){
	string::size_type size=x.size();
	return size;
}
#define fu(l,k) for(int i=l;i<k;i++)
#define fd(l,k) for(int i=l;i>k;i--)
#define fi first
#define se second
typedef  vector<string> vs;
typedef  vector<int> vi;
double pi(){
	return M_PI;
}
typedef set<int> set_i;
typedef set<string> set_s;
int main(){
	int a,b,ans[201]={},i=0;
	while(cin>>a>>b){
		int q;
		q=a+b;
		while(1){
			if(q/10!=0){
				ans[i]++;
				q=q/10;
			}
			else break;
		}
		cout<<ans[i]+1<<endl;
		i++;
	}
}

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

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

    }

    return 0;
}

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,b,c;
	int ans;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;
		//-----test-----
		if(a<1500) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <cstdio>
using namespace std;
int a,b;
int cnt,ans;
int count(int s){
  if(s/10==0) return cnt;
  else {
    cnt++;
    count(s/10);
  }
}
int main(){
  while(scanf("%d %d",&a,&b)){
    cnt=1;
    ans=count(a+b);
    printf("%d\n",ans);
  }
  return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define REP(i,N) for(int i = 0; i < (int)N; i++)

int main(){
	int hako[200][2];
	int i=0;
	int b;
	while(cin >> b){
		hako[i][0] = b;
		cin >> hako[i][1];
		i++;
	}
	REP(j,i){
		int a=0;
		int sum = hako[j][0] + hako[j][1];
		while(sum > 0) sum/10,a++;
		cout << a <<endl;
	}
	return 0;
}

C++: #include<iostream>

using namespace std;

int main(){
  int a,b;
  while(1){
    float c;
    cin >> a >> b;
    a+=b;
    if(cin.eof())break;
    for(;a/10.0>0.0;c++){
      a%=10;
    }
    cout << c << endl;
  }

  return 0;
}

C++: #include <iostream>

using namespace std;

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

C++: #include<iostream>
#include<cmath>
using namespace std;
 
int main()
{
    int num1, num2,sum;
    int n = 1;
    cin >> num1 >> num2;
 
    sum = num1 + num2;
 
    while (true)
    {
        int po = pow(10, n);
        if (!((sum % po) == sum))
            n++;
        else
            break;
    }
 
    cout << n << endl;
 
    cin >> n;
    return 0;
}

C++: #include<iostream>

int main() {
	int a, b,total,truss;
	while (std::cin >> a >> b) {
		total = a + b;
		for (truss = 0; total != 0; truss += 1) {
			total = int(total / 10);
		}
		std::cout << truss << std::endl;



	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a[999],b[999];
  int i=0;
  int k=0;
  int s[999]={0};
  int ke[999]={0};
  while(cin>>a[k]>>b[k]){
  s[k]=a[k]+b[k];
  while(s[k]==0){
    s[k]=s[k]/10;
    ke[k]++;
  }
  k++;
}
  for(i=0;i<=k;i++){
  cout<<ke[i]+1<<endl;
}
  return 0;
}

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

using namespace std;
int main()
{
    long long a,b,sum,fun,cnt;
    while(cin>>a>>b)
    {
        cnt=0;
        sum=a+b;
        for(;;)
        {
            fun=sum;
            sum=fun/10;
            cnt++;
            if(sum<=0) break;
        }
        cout<<cnt<<endl;
    }
    return 0;
}

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