Go: package main

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

func sliceAtoi(sa []string) ([]int, error) {
	si := make([]int, 0, len(sa))
	for _, a := range sa {
		i, err := strconv.Atoi(a)
		if err != nil {
			return si, err
		}
		si = append(si, i)
	}
	return si, nil
}

func getDigits(ary []int) (digits int) {
	sum := 0
	for _, v := range ary {
		sum += v
	}

	for sum != 0 {
		sum /= 10
		digits++
	}
	return
}

func getsTwoNumAsArray() (nums [][]int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}

		ary, _ := sliceAtoi(strings.Split(str, " "))
		nums = append(nums, ary)
	}

	return
}

func main() {
	ary := getsTwoNumAsArray()

	for _, v := range ary {
		fmt.Println(getDigits(v))
	}
}

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

C++: #include <iostream>
#include <string>
using namespace std;
int main() {
    int a, b;
    while (cin >> a >> b) {
        cout << to_string(a + b).size() << endl;
    }
    return 0;
}

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

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

    return 0;
}

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

C++: #include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int add (string a, string b)
{
	reverse (a.begin(), a.end() );
	reverse (b.begin(), b.end() );

	while (a.length() != b.length()){
		if (a.length() > b.length()){
			b += '0';
		}else if (a.length() < b.length() ){
			a += '0';
		} // end if
	} // end while

	int i;
	string res = "";
	int carry = 0;

	for (i = 0; i < a.length(); ++i){
		int an = a[i] - '0';
		int bn = b[i] - '0';
		if (carry == 1){
			++an;
		} // end if
		if (an + bn >= 10){
			carry = 1;
		}else{
			carry = 0;
		} // end if
		res += ((an + bn) % 10) + '0';
	} // end for

	if (carry == 1){
		res += carry + '0';
	} // end if
/*
	reverse (res.begin(), res.end() );
	cout << res << endl;
*/	
	return res.length();
}

int main()
{
//	cut here before submit 
//	freopen("testcase.add", "r", stdin);
	string str = "";
	string a,b;

	while (getline (cin, str )){
		stringstream ssn(str);
		ssn >> a >> b;
		int res = add (a,b);
		cout << res << endl;	
	} // end while
		
	return 0;
}

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

int main()
{ 
	int i1, i2;
	while (cin >> i1 >> i2) {
		i1 += i2;
		i2 = 0;
		while (i1) {
			i2++;
			i1 /= 10;
		}
		cout << i2 << endl;
	}
    return 0;
}

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

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

}

C++: #include <iostream>

using namespace std;
int i,a,b;

int main() {
	while(cin>>a>>b){
		a = a+b;
		string s = to_string(a);
		cout << s.size() << endl;
	}
	return 0;
}

C++: #include<iostream>

//関数の宣言
int func(int ans);

int main(){
	
	int a;
	int b;
	int ans;
	int truss;

	while (std::cin >> a >> b){
		
		ans = a + b;

		truss = func(ans);

		std::cout << truss << std::endl;
	}
}

//関数の定義
int func(int ans){
	if (0 <= ans&&ans <= 9){
		return 1;
	}
	else if (10 <= ans&&ans <= 99){
		return 2;
	}
	else if (100 <= ans&&ans <= 999){
		return 3;
	}
	else if (1000 <= ans&&ans <= 9999){
		return 4;
	}
	else if (10000 <= ans&&ans <= 99999){
		return 5;
	}
	else if (100000 <= ans&&ans <= 999999){
		return 6;
	}
	else if (1000000 <= ans&&ans <= 9999999){
		return 7;
	}
}

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

using namespace std;

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int a, b, tmp, ans;
  while (cin >> a >> b) {
    tmp = a + b;
    ans = 0;
    while (true) {
      ans++;
      if (tmp / 10 <= 0) {
        cout << ans << '\n';
        break;
      }
      tmp /= 10;
    }
  }
  return 0;
}

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

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

int main() {
	long long int a, b, c;
	int x;
	bool flg = true;

	while (!cin.eof()) {
		cin>>a;
		cin>>b;

		c=a+b;

		x = 1;
		flg = true;
		while (flg) {
			if ((c=c/10)>0)
				x++;
			else
				flg = false;
		}
		cout<<x<<endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a, b;
    while (cin >> a >> b) {
        int x = a + b;
        int i = 0;
        while (x > 0) {
            x /= 10;
            i++;
        }
        cout << i << "\n";
    }
}

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

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

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

C++: #include<iostream>
using namespace std;
int main(){
    while(1){
        int a,b;
        cin>>a>>b;
        if(cin.eof())break;
        int sum=a+b;
        unsigned count=1;
        while(sum/10!=0){
            sum/=10;
            count++;
        }
        cout<<count<<endl;
    }
    return 0;
}

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

int main(){
unsigned long int a,b,s,i;
while(cin>>a>>b)
{
    s=a+b;
    i=0;
    do
    {
      s/=10;
      i++;
    }
    while(s!=0);
    cout<<i<<"\n";
}
    return 0;
}

C++: #include<complex>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cmath>
#include<vector>
#include<map>
#include<sstream>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<cassert>
#include<deque>
#include<queue>
#include<climits>
#include<list>
#include<stack>
#include<fstream>
#include<ctime>
#define all(n) n.begin(),n.end()
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define insert(a,b,c,d) PP(P(a,b),P(c,d))
#define F first
#define S second
#define pb push_back
#define INF (1<<27)
#define EPS 1e-10
#define equals(a,b) (fabs((a)-(b)) < EPS)

using namespace std;
typedef pair<int,int> P;
typedef pair<P,P> PP;
typedef unsigned long long ull;
typedef long long ll;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};


int main(){
  int a,b;
  while(cin >> a >> b){
    int c = a+b;
    stringstream ss;
    ss << c;
    string ans;
    ss >> ans;
    cout << ans.length() << endl;
  }

  /* 
  ofstream ofs("tes");
  ofs << "script -k test.log" << endl;
  system("chmod 755 tes");
  system("at -m -f tes 2:35");
  

  
  system("at exit 2:40");
  system("at cat test.log 2:41");
  */

ofstream ofs("test.t");
ofs << "testetete" << endl;
  cerr << system("rm test.t") << endl;


return 0;
}