Go: package main

import (
  "fmt"
  "unicode/utf8"
)


func main() {
  var a int
  var b int
  for _, err := fmt.Scan(&a, &b); err == nil; _, err = fmt.Scan(&a, &b) {
    fmt.Println(utf8.RuneCountInString(fmt.Sprint(a+b)))
  }
}

C++: #include<iostream>
#include<string.h>
using namespace std;
int main()
{
	int a, b;
	while (cin>>a>>b)
	{
		char s[7];
		sprintf(s, "%d", a + b);
		cout << strlen(s) << endl;
	}


	return 0;
}

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

using namespace std;

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

C++: #include<stdio.h>
#include<math.h>
int main(void)
{
	int a[100], b[100], c, i;
	for(i=0;(a[i]!='\n')||(b[i]!='\n');i++)
	{
		scanf("%d %d", &a[i], &b[i]);
		c = a[i]+b[i];
		printf("%d\n", log(c));
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
  long a, b, sum, count;
  
  while(cin >> a >> b) {
    
    count = 0;
    sum = a + b;
    while(sum != 0) {
      sum /= 10;
      count++;
    }
    cout << count << endl;
  }
}

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

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

for(int kaisu=0;kaisu<N;kaisu++)
{
 n=1;
 cin>>a>>b;
 if(a>=0 && b>=0 && a<=1000000 && b<=1000000)
 	{
	 a = a+b;
	 while(a>=10)
	 	{
		 a = a/10;
		 n++;
	 	}
 	}
  cout<<n<<endl;
}

}

C++: #include<stdio.h>
#include<math.h>
int main()
{
    int a,b,res;

    while((scanf("%d%d",&a,&b)!=EOF)&&((a+b)>=0))
    {
        if((a+b)==0)
            printf("0\n");
        else if((a+b)<10)
            printf("1\n");

        else
            printf("%.0lf\n",ceil(log10(a+b)));
    }

    return 0;
}

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

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

int main() {
	float a,b,sum;
	int cont=0;
	do
	{
	cin>>a;cin>>b;
	}while(a<0||a>1000000||b<0||b>1000000);
	sum=a+b;
	do
	{
		sum=sum/10;
		cont++;
	}while(floor(sqrt(sum))!=0);
	cout<<cont<<endl;
	return 0;
}

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

int main(void){
	int a,b;
	cin >> a; cin >> b;
	int c=a+b;
	int i=0;

	while(c!=0){
		c/=10;
		i++;
	}
	cout << i << endl;
	return 0;
}

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

int main() {
	int a,b;
	while(std::cin >> a >> b){
		int sum = a+b;
		std::stringstream ss;
		ss << sum;
		std::string str = ss.str();
		std::cout << str.length() <<std::endl;
	}

	return 0;
}

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

int main()
{
	int n = 200;
	while (n--) {
		int a, b;
		stringstream ss;
		string sum;
		cin >> a >> b;
		ss << a + b;
		sum = ss.str();

		cout << sum.size() << endl;
	}

	return 0;
}

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