Go: package main

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

var (
	sc = bufio.NewScanner(os.Stdin)
)

func main() {
	for sc.Scan() {
		chunks := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

C++: #include <bits/stdc++.h>
using namespace std;
//#include <boost/multiprecision/cpp_int.hpp>
//using multiInt = boost::multiprecision::cpp_int;

using ll = long long int;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
template<typename Q_temp>
using smaller_queue = priority_queue <Q_temp, vector<Q_temp>, greater<Q_temp> >;

const int INF = (int) 1e9;
const ll LINF = (ll) 4e18;
const ll MOD = (ll) (1e9 + 7);
const double PI = acos(-1.0);
const int limit = 100010;

#define REP(i,m,n) for(ll i = m; i < (ll)(n); ++i)
#define rep(i,n) REP(i, 0, n)
#define MP make_pair
#define MT make_tuple
#define YES(n) cout << ((n) ? "YES" : "NO") << endl
#define Yes(n) cout << ((n) ? "Yes" : "No") << endl
#define Possible(n) cout << ((n) ? "Possible" : "Impossible") << endl
#define all(v) v.begin(), v.end()
#define NP(v) next_permutation(all(v))
#define dbg(x_) cerr << #x_ << ":" << x_ << endl;
#define dbg2(x_) for(auto a_ : x_) cerr << a_ << " "; cerr << endl;
#define dbg3(x_ , sx_) rep(i, sx_) cerr << x_[i] << " "; cerr << endl;
vector<int> Dx = {0, 0, -1, 1, -1, 1, -1, 1, 0};
vector<int> Dy = {1, -1, 0, 0, -1, -1, 1, 1, 0};

inline ll CEIL(ll a, ll b) {
    return (a + b - 1) / b;
}

//------------------------------------------------------

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a, b;
    while (cin >> a >> b) {
        string s = to_string(a + b);
        cout << s.length() << endl;
    }
    return 0;
}

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

using namespace std;

int main(){
        double a, b;
        int i, c;
        scanf("%lf%lf", &a, &b);
        c = 1;
        for(i = 0; c >= 0; i++){
                c = (a + b) - pow(10, i);
        }
        printf("%d\n", i - 1);
        return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		if(cnt==103) break;
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

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

using namespace std;

int main(void){
  int a,b;
  int sum;
  int digit = 1;
  cin >> a >> b;
  sum = a + b;
  while(sum > 0){
    if(sum /= 10){
      digit++;
    }
  }
  cout << digit << endl;
  return 0;
}

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

using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  a += b;
  int dig_num = 1;
  if (a == 0) {
    dig_num = 0;
  }
  while ((a /= 10) != 0) {
    ++dig_num;
  }
  cout << dig_num << "\n";
}

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

int main() {
  int a, b;
  while (cin >> a >> b) {
    stringstream ss;
    ss << a + b;
    cout << ss.str().size() << endl;
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

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

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

int main(){
  unsigned a, b;

  while( 1 )
    {
      cin >> a >> b;
      string c = to_string( a + b );
      cout << c.length() << endl;
    }

  return 0;
}

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

int main() {
	int a, b;
	while (cin >> a >> b) {
		printf("%d\n", a + b);
	}
	

	//system("pause");
	return 0;
}

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

#define int long long int
#define main signed main()
#define bye return 0
#define loop(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) loop(i, 0, n)
#define each(p, v) for (auto p = (v).begin(); p != (v).end(); p++)
#define all(v) (v).begin(), (v).end()
#define prec(n) fixed << setprecision(n)
#define dump(x) cerr << "(L" << __LINE__ << ") " << #x << " = " << (x) << endl
#define clr(x, a) memset(x, a, sizeof(x))

#define sum(v) accumulate(all(v), 0)
#define stlice(from, to) substr(from, (to) - (from) + 1)
#define odd(n) ((n) % 2)
#define even(n) (!odd(n))

#define INF 1000000000
#define MOD 1000000007

#define pb push_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define vi vector<int>
#define vb vector<bool>
#define vc vector<char>

using namespace std;

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

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

int main(){
  int temp,temp2;
  while(cin>>temp>>temp2){
    int sum=temp+temp2;
    int keta=1;
    while(sum/10>0){
      sum/=10;
      keta++;
    }
    cout<<keta<<endl;
  }

  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a,b;
  
  while(cin>>a>>b){
    a+=b;
    b=1;
    for(int i=1;i<=7;i++){
      b*=10;
      if(a<b){
	cout<<i<<endl;
	break;
      }
    }
  }
  return 0;
}

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

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

C++: #include "bits/stdc++.h"
using namespace std;
int main(){
    int a, b;
    string sum;
    while(cin >> a >> b){
        sum = to_string(a + b);
        cout << sum.size() << endl;
    }     
    return 0;
}

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

int main() {
	int a = 0;
	int b = 0;

 	while (cin >> a >> b) {
 		int sum = a + b;
	
		int i = 0;
		while (sum != 0) {
			sum /= 10;
			i++;
		}
		cout << i << endl;
 	}

	return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int dec1,dec2,sum,keta=0;
	scanf("%d %d",&dec1,&dec2);
	sum=dec1+dec2;
	while(sum>10){
		sum=sum/10;
		keta++;
	}
	printf("%d\n",keta+1);
	return 0;
}

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

int main()
{
    int in1, in2;
    int a[200], b[200];
    int count = 0;
    while(cin >> in1 >> in2) {
        a[count] = in1;
        b[count] = in2;
        count++;
    }

    for(int i = 0; i < count; i++) cout << (int)log10(a[i]+b[i])+1 << endl;
    
    return 0;
}

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

int main(int argc, char *argv[]){
	//std::ifstream datafile(argv[1]); //input datafile
	std::string str;
	int num1, num2; //a, b
	int sum; //a + b
	int digit = 0; //digit

	// if(datafile.fail()){
	// 	std::cout << "error : can't open this file." << std::endl;
	// 	exit(1);
	// }

	while(std::getline(std::cin, str)){
		sscanf(str.c_str(), "%d%d", &num1, &num2);

		if(num1 < 0 || num1 > 1000000 || num2 < 0 || num2 > 1000000){
			std::cout << "error : out of constraints" << std::endl;
			exit(1);
		}

		sum = num1 + num2;

		if(sum == 0){ //when sum is 0, its digit is 1
			std::cout << 1 << std::endl;
		}else{ //when sum is not 0
			while(sum != 0){
				digit++;
				sum = sum / 10;
			}
			std::cout << digit << std::endl;
			digit = 0;
		}
	}

	return 0;
}