Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(s[0])
		b, _ := strconv.Atoi(s[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

C++:  #include <bits/stdc++.h>
#ifdef dbg
#include "./printer.hpp"
#else
#define dump(x) void(0)
#endif

using namespace std;
#define ll long long
inline long  toInt(string s) {long  v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
#define INF 100000

int main(){
  ios_base::sync_with_stdio(0);
  ll a,b;
  while(cin >> a >> b){
    string s = to_string(a+b);
    cout << s.length() << '\n';
  }
  
  return 0;

}

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

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

C++: #include <iostream>

int main(){
  int a, b, c;
  int keta;

  while(cin >> a){
    cin >> b;
    c=a+b;
    keta=1;
    while((c/=10)>0) keta++;
    printf("%d\n", keta);
  }
  
  return 0;
}

C++: //http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002

#include <iostream>
#include <string>
using namespace std;
int main() {
	int a, b; 
	while (cin >> a >> b) {
		string str = to_string(a + b);
		cout << str.length() << endl;
	}
}

C++: #include <iostream>

using namespace std;
int main(){
	int n,m,sum,count;
	for(int i=1;cin.eof()==false;i++){
		n = -1;
		cin >> n >> m;
		if (n == -1) break;
		sum = n + m;
		count = 0;
		while(sum!=0){
			sum /= 10;
			count++;
		}
		cout << count << endl;
	}
}

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

using namespace std;

int main(){
	int a,b;
while(cin>>a>>b){
	}
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

C++: #include<iostream>
using namespace std;
int main(){
int a,b,sum,cnt=1;
while(cin>>a>>b){
sum=a+b;
while(1){
if (sum<10) break;
sum/=10;
cnt++;
}
cout<<cnt<<endl;
cnt=1;
}
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<stdio.h>

int main(void)
{
	int a,b,sum,count=0,x=0;
	int keta[1000]={0};

	while(scanf("%d %d",&a,&b)!=EOF)
	{
		sum=a+b;
		count++;

		while(sum>=10)
		{
			sum=sum/10;
			keta[x]++;
		}

		keta[x]++;
		x++;
	}

	for(x=0;x<count;x++)
	{
		printf("%d\n",x,keta[x]);
	}

	return 0;
}

C++: #include<bits/stdc++.h>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cctype>

#include<cmath>
#include<iostream>
#include<fstream>

#include<string>
#include<vector>
#include<queue>
#include<map>
#include<algorithm>
#include<set>
#include<sstream>
#include<stack>

using namespace std;

int main()
{
    long long int n,i,j,a,b,c,aa,bb,digit,digit1,ck=0,dk=0;
    while(scanf("%lld %lld", &a, &b)!=EOF){

    aa = a +b;
    c = aa;
    while(aa){
        aa/=10;
        ck++;
        }

    cout<<ck<<endl;
    ck=0;
    }
}

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

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

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

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

C++: #include <iostream>

using namespace std;

int main(){
	int a, b, c;
	int i = 1;

	cin >> a >> b;
	c = a+b;

	while(c>1){
		c = c/10;
		i++;
	}
	

		cout << i << endl;
}

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

C++: #include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
    int a, b, c, d;
    char s[10000];
    scanf("%d %d", &a, &b);
    c = a + b;
    itoa(c ,s , 10);
    d = strlen(s);
    printf("%d", d);
    return 0;
}

C++: #include <cstdio>
   
#define MAX 1000000
#define MIN 0
#define SIZE 200
   
int main() {
 int i,j;
 int a,b;
 int cnt = 0;
 int buf = 0;
 int sets[SIZE];
   
 while(scanf("%d %d",&a,&b) != EOF) {
  if((a < MIN) || (b > MAX)) {
   continue;
  }
    
  sets[cnt] = a + b;
  ++cnt;
 }
  
 for(i = 0;i <= cnt;++i) {
  j = MAX;
 
  while(j != 0) {
   if((sets[i] / j) != 0) {
    ++buf;
    sets[i] -= (sets[i] / j) * j;
   }
   
   j /= 10;
  }
  
  sets[i] = buf;
  buf = 0;
 }
  
 for(i = 0;i <= cnt;++i) {
  printf("%d\n",sets[i]);
 }
  
 return 0;
}

C++: #include<iostream>
#include<string.h>
using namespace std;
int main(){
int a,b,c;
char ans[10];
cin>>a>>b;
ans=(char)a+b;
c=strlen(ans);
cout<<c<<endl;
return 0;
}

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

int main(void){

	int a, b, d, z;
	
	cin >> a >> b;
	
	z = a + b;
	
	for(int i=0, d=10;; i++, d*=10){
		if((z / d) == 0){
		  cout << i+1 << endl;
		  return 0;
		}
	}
	
}

C++: #include<stdio.h>

int main()
{
	int a, b;
	while(scanf("%d %d", &a, &b) != EOF)
	{
		int digit = 1;
		int result = a + b;
		while(result >= 10)
		{
			result/=10;
			digit++;
		}
		printf("%d\n", digit);
	}

	return 0;
}

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

using namespace std;

int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);

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

	return 0;
}

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

int main() {
  int a, b;
  while(cin >> a >> b) {
    char buff[100];
    sprintf(buff, "%d", a+b);
    cout << strlen(buff) << endl;
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
	int a,b;
	while(true){
	cin>>a>>b;
int c=0;
int n;
n=a+b;
while (n>0){
	c++;
	n=n/10;
}

cout<<c<<endl;
}
}

C++: #include <cstdio>

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

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

C++: /*
??????????????????????????´??° a ??¨ b ??????????????°???????????????????????°?????????????????????????????????
???????????????????????° <= 200
*/

#include <iostream>
#include <string>

using namespace std;
 
int main()
{

	int a, b, calc, strCount = 0;
	string str = "";

	for ( int i = 0; i < 200;  i++ ) {
		a = b = 0;
		
		cin >> a >> b;

		if ( a == 0 && b == 0 ) {
			break;
		}

		calc = a + b;
		str = to_string( calc );
		strCount = str.size();
		
		cout << strCount << endl;
	}

    return 0;
}

C++: #include<iostream>

int main()
{
	int x,y,sum=0;
	std::cin>>x>>y;
	x+=y;
	while(x){
		sum+=1;
		x=x/10;
	}

	std::cout<<sum<<std::endl;

	return 0;
}