Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	//sc.Split(bufio.ScanWords)
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		n1, _ := strconv.Atoi(s[0])
		n2, _ := strconv.Atoi(s[1])
		fmt.Printf("%d\n", len(strconv.Itoa(n1+n2)))
	}
}

C++: //-------------
//include
//-------------
#include <map>
#include <list>
#include <cmath>
#include <vector>
#include <string>
#include <cctype>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;
//-------------
//typedef
//-------------
typedef long long LL;
typedef  vector<int> VI;
typedef  pair<int, int> PII;
typedef  vector<int, int> VII;
typedef  map<string, int> MSI;
//-------------
//utillty
//-------------
#define ALL(a)  (a).begin(),(a).end()
#define MK make_pair
#define PB push_back
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define COUT(a) cout<<a<<endl
//-------------
//repetition
//-------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
//-------------
//debug
//-------------
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define dumpl(c) REP(i,SZ(c))cerr<<#c<<i<<"="<<(c[i])<<endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

const int MOD = 1000000007;
int main()
{
	int a, b;
	while (cin >> a>> b)
	{
		COUT(to_string(a + b).length());
	}
#ifdef _DEBUG
	while(1);
#endif // _DEBUG

	return 0;
}

C++: //
//  main.cpp
//  CppTest
//
//  Created by Ryu on 2017/02/08.
//  Copyright ?? 2017??´ Ryu. All rights reserved.
//

#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    long a[200];
    long b[200];
    int keta[200];
    
    int now = 0;
    long p;
    while(cin >> a[now] >> b[now]){
        p = a[now] + b[now];
        int k = 0;
        while(p >= pow(10, k)){
            k++;
        }
        keta[now] = k;
        now++;
        if( !cin.peek() ){
            break;
        }
    }
    
    
    //printf("finished");
    
    for (int i = 0; i < now; i++) {
        printf("%d\n", keta[i]);
    }
    
    
    return 0;
}

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

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

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

int main(){
	std::vector<int> r;
	while(true) {
		int nums[2];
		for(int i=0; i<2; ++i){
			scanf("%d", &nums[i]);
		}

		r.push_back(nums[0]+nums[1]);
	}

for(int &i : r) {
	printf("%d\n", i);
}
	

	return 0;
}

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

int digit_num(int num){
  int ret = 1;
  int base = 10;
  int rest = num / base;
  
  while(rest != 0){
    ret++;
    rest /= base;
  }
  
  return ret;
}

int main(){
  vector<int> ans;
  
  while(!cin.eof()){
    int a, b;
    cin >> a;
    cin >> b;

    int c = a + b;
    ans.push_back(digit_num(c));
  }

  for(int i = 0; i < (int)ans.size(); i++){
    cout << ans[i] << endl;
  }
  
  return 0;
}

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

int main(){
	int a, b, sum, d = 1;
	while(cin >> a >> b){
		while(!(((a >= 0)&&(a <= 1000000))&&((b >= 0)&&(b <= 1000000)))){
			cout << "wrong value\n";
			cin >> a >> b;
		}
		sum = a + b;
		while((sum / 10) != 0){
			d++;
			sum /= 10;
		}
		cout << d << "\n";
		d = 1;
	}
    return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="776756";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include<iostream>

int digit(int a, int b){
  int digit=0;
  int c=a+b;
  
  if(c == 0){
    return 1;
  }
  else {
    while(c != 0){
      c /= 10;
      digit++;
    }
    return digit;
  }
}

int main(){
  int sum[200];
  int a, b; //2????????´??°
  int count=0; //????????????
    
  //std::cout << "Input two of numbers\n";
  
  while(std::cin >> a >> b){
    if(a == -1 && b== -1)
      break;
    
    sum[count]=digit(a,b);
    count++;
  }

  for(int i=0; i<count; i++){
    std::cout << sum[i] << '\n';
  }

  return 0;
}

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

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

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

using namespace std;

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

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


int judge(int n){
	if (n / 1000000 != 0) return 7;
	if (n / 100000 != 0) return 6;
	if (n / 10000 != 0) return 5;
	if (n / 1000 != 0) return 4;
	if (n / 100 != 0) return 3;
	if (n / 10 != 0) return 2;
	if (n / 1 != 0) return 1;
	return 0;
}


int main(){
	int a, b;
	while (cin >> a >> b)
	{
		int n = a + b;
		cout << judge(n) << endl;
	}

	return 0;
}

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

using namespace std;


int main() {
    int a, b;

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

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

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

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

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

int main()
{
	int a, b, sum, ans;
	sum = a + b;
	ans = (int)log10 ((double)sum)+ 1;
	cout << ans << endl;
	
	return 0;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main()

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

C++: #include <iostream>
#include <cmath>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	a = (int)log10((double)a) + 1;
	b = (int)log10((double)b) + 1;

	cout << a + b << endl;

	return 0;
}

C++: #include <vector>

#ifndef EOF
#define EOF (-1)
#endif

int main() {
    std::vector<int> digits;
    int a, b;
    while (scanf("%d %d", &a, &b) != EOF)
    {
        int sum = a + b;
        int t = sum / 10;
        int digit = 0;
        while (t > 0) {
            digit ++;
            t = t / 10;
        }
        digits.push_back(digit);
    }

    for (int i = 0; i < digits.size(); i++) {
        std::cout << digits[i] << std::endl;
    }

    return 0;
}

C++: #include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main() {
  int a, b, cnt;
  string s;
  getline(cin, s, ' ');
  a = stoi(s);
  getline(cin, s);
  b = stoi(s);
  a += b;
  cnt = 0;
  if (a == 0) {
    cnt = 1;
  } else {
    while (a) {
      cnt++;
      a /= 10;
    }
  }
  cout << cnt << endl;
}