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 <vector>
#include <list>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <utility>
#include <functional>
#include <sstream>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <climits>
#include <cassert>
using namespace std;
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
typedef long long ll;
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(),(a).rend()
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define EACH(t,i,c) for(t::iterator i=(c).begin(); i!=(c).end(); ++i)
const double EPS = 1e-10;
const double PI  = acos(-1.0);

int main(){
	while(!cin.eof()&&!cin.bad()&&!cin.fail()){
		int a=-1,b=-1;
		cin>>a>>b;
		if(!cin.eof()&&!cin.bad()&&!cin.fail()&&a>=0&&b>=0){
		cout<<toString(a+b).size()<<endl;
		}else{
			break;
		}
		
	}
}

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++;
      i *= 10;
    }else{
      break;
    }
  }
  std::cout << num << std::endl;
  
  return 0;
}

C++: #include <stdio.h>

int main(){

	int a=0,b=0;

	while (scanf("%d%d", &a, &b)!=EOF){
		
		if (a + b < 1000000){
			printf("6\n");
		}else if(a + b < 100000){
			printf("5\n");
		}else if (a + b < 10000){
			printf("4\n");
		}else if (a + b < 1000){
			printf("3\n");
		}else if (a + b < 100){
			printf("2\n"); 
		}else if (a + b < 10){
			printf("1\n",x);
		}
	}
	return 0;
｝

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

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

using namespace std;

void readData(vector<string>& input_data){
}

int perseString(string line) {
    stringstream ss;
    ss << line;

    int a, b;
    ss >> a >> b;

    return a + b;
}

int countDigit(int n){
    int cnt = 1;

    while(n /= 10)
        ++cnt;

    return cnt;
}

void mainRoutine(){
    vector<string> input_data;

    readData(input_data);

    for(int i = 0; i < input_data.size(); ++i){
        auto ret = perseString("100 200");
        cout << countDigit(ret) << endl;
    }
}

int main() {
    mainRoutine();

    return 0;
}

C++: #include<stdio.h>
int main()
{
	int a;
while(scanf("%d",&a)!=EOF)
	{
		int b;
		scanf("%d",&b);

		int temp=a+b;
		int ans=1;
		while((temp/=10)>0)
		{
			ans++;
		}
	printf("%d\n",ans);
	}
}

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

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

}

C++: #include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  int a,b,ans=1,ten=10;
  cin>>a>>b;
  a+=b;
  while(a>=10){
    ans++;
    a/=10;
  }
  cout<<ans<<endl;
}

C++: #include<iostream>
using namespace std;
int a,b;
int main(){
	while(cin>>a>>b){
		int c=a+b;
		if(c/1000000>=1){
			cout<<7<<endl;
		}
		else if(c/100000>=1){
			cout<<6<<endl;
		}
		else if(c/10000>=1){
			cout<<5<<endl;
		}
		else if(c/1000>=1){
			cout<<4<<endl;
		}
		else if(c/100>=1){
			cout<<3<<endl;
		}
		else if(c/10>=1){
			cout<<2<<endl;
		}
		else{
			cout<<1<<endl;
		}
	}
	return 0;
}

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]);
	}
}