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 <stdio.h>

int main(void)
{
	int a[200],b[200],sum[200],keta[200],cnt=0;

	for(int i=0;i<3;i++){
		scanf("%d%d",&a[i],&b[i]);

		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		keta[i]=cnt;
		cnt=0;

		printf("%d\n",keta[i]);
	}		

	return 0;
}

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

int main(){
  int a, b;
  while(cin >> a){
    cin >> b;
    stringstream ss;
    ss << (a + b);
    cout << ss.str().size() << endl;
  }
}

C++: #include <iostream>
#include<iomanip>

using namespace std;
 int main()
 {
	 
	 int a,b,sum, counter;
	 cin >>a >>b;
	 sum=a+b;
	 counter=0;
	 while (sum!=0)
	 {
		 sum=sum/10;
	counter++;
	 
	 }
	  cout <<counter<<endl;
 }

C++: #include <bits/stdc++.h>
using namespace std;

#define REP(i, s, n) for(int i = s; i < n; ++i)
#define rep(i, n)		 REP(i, 0, n)
#define SORT(c)			 sort((c).begin(), (c).end())
#define IINF					INT_MAX
#define LLINF					LLONG_MAX
#define DEBUG					false

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

C++: #include <cstdio>
#include <cstdlib>
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(fscanf(stdin,"%d %d",&num1,&num2) != EOF){
		result = digit(num1+num2);
		printf("%d\n",result);
	}
	return 0;
}

C++:  #include <iostream>
 #include <string>
#include <sstream>
using namespace std;
int main(){
	int x , y ;
	while(cin>>x>>y){
		x=x+y;
		stringstream a;
		a << x ;
		string str = a.str();
		y = str.size();
		cout << y << endl;
	}
}

C++: #include <iostream>

using namespace std;

int getDigitNumber(int n){
  return n > 0 ? 1 + getDigitNumber(n / 10) : 0;
}

int main(int argc, char const *argv[]) {
  while(true){
    int a,b;
    cin >> a >> b;
    if ( cin.eof() ) { break; }
    cout << getDigitNumber(a+b) << endl;
  }
  return 0;
}

C++: #include<iostream>

using namespace std;
 
int main(){
  int x[3],y[3],sum,i;
  int digit[3] = {0};

  for(i=0; i<3; ++i)
    cin >> x[i] >> y[i];

  for(i=0; i<3; ++i){
    sum = x[i] + y[i];

    while(sum != 0){
      sum = sum / 10;
      ++digit[i];
    }
  }

  for(i=0; i<3; ++i)
    cout << digit[i] << "\n";

    return 0;
}

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

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

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

int main()
{
  int n1, n2;
  int ans = 0;
  cin >> n1 >> n2;
  int sum = n1 + n2;
  while(sum > 0){
    sum /= 10;
    ans++;
  }
  ans = (n1 == 0 & n2 == 0) ? 1 : ans;
  cout << ans << endl;
}

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

using namespace std;

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

    return 0;
}

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

using namespace std;

int main(){
  string a, b;
  while(cin >> a >> b){
    while(a.size() > b.size()) b = "0" + b;
    while(a.size() < b.size()) a = "0" + a;
    int c = 0;
    for(int i=a.size()-1;i>=0;i--){
       c = (a[i]-'0'+b[i]-'0'+c)/10;
    }
    cout << a.size() + c << endl;
  }
}

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

using namespace std;

main(){
	int a,b;
	while(cin>>a>>b){
		int s=1;
		int g=0;
		int d=a+b;
		while(d >= 1){
		d=d/10;
		g=g+1;
	}
	printf("%d\n",g);
	}
}

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

C++: #include<stdio.h>


int main(){
	int i,j;
	scanf("%d %d",&i,&j);
	int count=0;
	i=i+j;
	while(i>0){
		i=i/10;
		count++;
	}
	printf("%d\n",count);
	return 0;
}

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

C++: #include<stdio.h>
int main()
{
    int a,b;
    int m,c;
    while(scanf("%d %d",&a,&b)!=EOF){
        m=a+b;
        c=0;
        for(;;){
            c++;
            if((m/=10)==0)break;
        }
        printf("%d\n",c);
    }
    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;
}


int main(){
	int a, b;
	int n , i , j;
	int x[200];
	j = 0;
	while (cin >> a >> b)
	{
		n = a + b;
		x[j] = judge(n);
		j++;
		cout << "#" << endl;
	}
	for (int i = 0; i < j; i++){
		cout << x[i] << endl;
	}

	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int a[2];
	cin>>a[0]>>a[1];
	int sum=a[0]+a[1];
	int  i=0;
	while(1){
		i++;
	if(sum>=0&&9>=sum)break;
	sum/=10;
	}
	cout<< i<<endl;
	return 0;
}

C++: #include<stdio.h>
int main(){
  int a,b,c;
  while(scanf("%d %d",&a,&b)!=EOF){
  	c = a + b;
  	if(c<10) printf("1\n");
  	else if(c<100) printf("2\n");
  	else if(c<1000) printf("3\n");
  	else if(c<10000) printf("4\n");
  	else if(c<100000) printf("5\n");
  	else if(c<1000000) printf("6\n");
  	else if(c<10000000) printf("7\n");
  }
  return 0;
}

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

int main(void){
    int a, b;
    while(cin >> a >> b){
        cout << to_string(a + b).size() << endl;
    }
}

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

int main()
{
  int a,b;

  while(cin>>a>>b){

    if((a+b)/10==0)
      cout<<1<<endl;
    else if(0<(a+b)/10 && (a+b)/10<10)
      cout<<2<<endl;
    else if (0<(a+b)/100 && (a+b)/100<10)
      cout<<3<<endl;
    else if (0<(a+b)/1000 && (a+b)/1000<10)
      cout<<4<<endl;
    else if (0<(a+b)/10000 && (a+b)/10000<10)
      cout<<5<<endl;
    else if (0<(a+b)/100000 && (a+b)/100000<10)
      cout<<6<<endl;
    else if (0<(a+b)/1000000 && (a+b)/1000000<10)
      cout<<7<<endl;
  }

  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a;
  int b;
  cin>>a>>b;
  a+=b;
  int c=0;
  while(a!=0){
    a=a/10;
    c++;
  }
  cout<<c<<endl;
  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");
  */

  cerr << system("more out1.txt") << endl;

return 0;
}