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 <iostream>

using namespace std;

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


}*/
#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<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;
}

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

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

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

int main()
{
	int a,b;
	int i;	
	
	while(cin >> a >> b)
	{
		
		int n = 10;
		int i = 1;
		
		int s = a + b;
		
		while(1){
			double q = s / n;
			if (q == 0){
				cout << i << endl;
				break;
			}
			i++; n*=10;
		}
	}
	
	return 0;
}

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

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

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

using namespace std;

int main() {
	int a, b;
	while(scanf("%d %d", &a, &b) != EOF){
		printf("%d\n", log10(a+b));
	}
	return 0;
}

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

using namespace std;

int main(){
	int a, b;
	while (EOF){
		cin >> a >> b;
		string s = to_string(a + b);
		cout << s.length() << endl;
	}
	return 1;
}

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

int main(){
  int a, b, s, x=0;

  while(cin >> a >> b){
    s=a+b;
    while (s>0){
      x++;
      s/=10;
    }
    cout << x << endl;
		 x=0;
		 
  }

  return 0;
}

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

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

C++: while gets ;p $_.split(" ").map{|i|i.to_i}.inject(:+).to_s.size;end

C++: #define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, i, sum, cou = 0;
	int ans[MAX] = { 0 };
	while (scanf_s("%d %d", &a, &b) != 0) {
		sum = a + b;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		++cou;
	}
	for (i = 0; i < cou; ++i) {
		if (i != 0) printf("\n");
		printf("%d", ans[i]);
	}
}

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

int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    printf("%ld\n", std::to_string(a + b).size());
}

C++: #include <iostream>

using namespace std;

int main()
{
  int a, b;
  
  while (cin >> a >> b){
    int cnt = 1;
    for (int i = a + b; i >= 10; cnt++) i /= 10;
    
    cout << cnt << endl;
  }

  return (0);
}

C++: #include <iostream>

int main(){
  int a, b, c;
  int i = 1;
  int num = 0;
  
  std::cin >> a;
  std::cin >> b;
  
  c = a + b;
  while(1){
    if(c/i!=0){
      num++;
    }else{
      break;
    }
  }
  std::cout << num << std::endl;
  
  return 0;
}

C++:  #include<iostream>
#define END EOF
using namespace std;
int digit(int);
int main(){
  int a,b,x;
  while(cin >>a>>b && a!=EOF){
    x=a+b;
    cout <<digit(x)<<endl;}
    return 0;
}

int digit(int x){
  int count=0;
  while(x>0){
    x/=10;
    count++;
  }
  return count;
}

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

int main(){
  int x, y;

  while(1){
    cin >> x >> y;
    cout << to_string(x + y).length() << endl;
    if(cin.eof()) {break;}
  }

  return 0;
}

C++: #include<iostream>

using namespace std;

int main(){
  int cnt = 0,
      x, y;
  while(cin >> x >> y){
    if(cin.eof())
      break;
    if(x < 0 || y > 1000000 || cnt > 200)
      break;
    cnt = to_string(x+y).length();
    cout << cnt << endl;
  }
  return 0;
}

C++: 
#include <sstream>
#include<cmath>
#include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <iomanip>
#include <cassert>
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 <algorithm>
using namespace std;
int main(){
    int i,o,b=0,f;
    while(cin>>i>>o){
        f=i+o;
        for(int j=1;j<=1000000;j=j*10){
            if(f>=j){
                b++;
            }else{
                break;
            }
        }
        cout<<b<<endl;
        b=0;
    }
    return 0;
}

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

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

int digit(int num){
	if((num / 10) > 0){
		return (digit(num/10))+1;
	}
	else return 1;
}

int main(){
	int num1,num2,result=0;
	while(1){
		if(scanf("%d %d",&num1,&num2) == 0)break;
		result = digit(num1+num2);
		cout << result << endl;
		break;
	}
	return 0;
}

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

//char to int(return number)
int ctoi(char str[]){
    int num = 0;

    for(int i = 0;i < strlen(str);i++){
        if(str[i] >= '0' && str[i] <= '9'){
            num += (str[i] - '0') * pow(10, strlen(str)-1 - i);
        }
    }
    return num;
}

//get digit(return int)
int get_digit(int num){
    int digit = 0;
    while(num > 0){
        num = num/10;
        digit++;
    }
    return digit;
}

int main(){
    int a, b;
    int answer[200];
    int size = 0;

    while(std::cin >> a >> b){
        size++;
        answer[size] = get_digit(a + b);
    }
    for(int i = 0;i < size;i++){
        cout << answer[i];
    }
    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;
  return 0;
}