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()
{
    long int i,j,k,l=0;

    while(cin>>i>>j)
    {
    k=i+j;
    //cout<<k;
    while(k!=0)
    {
        k=k/10;
        l+=1;
    }
    cout<<l<<endl;
    l=0;
    }
    return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <math.h>
#include <vector>
#include <queue>
#include <algorithm>
#include <iterator>
#include <sstream>
#include <string>
using namespace std;
#define rep(I,N) for(int I = 0; I < (int)(N); I++)
#define FIN(V) cout<<V<<endl
#define pb push_back
#define INF (1 << 30)
typedef pair<int, int> P;
typedef long long ll;
typedef priority_queue<int> pq;

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


	return 0;	
}

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

C++: #include <iostream>

using namespace std;

int main(void){

  int a,b;

  while(1){

    cin >> a >> b;
    a += b;
    
    int cnt = 0;
    while(a){
      cnt++;
      a /= 10;
    }
    cout << cnt << endl;
  }
  return 0;
}

C++: #include <iostream>
#include <cmath>
int main() {
  int a, b;
  while (std::cin >> a >> b) {
    std::cout << log10(a+b)+1 << std::endl;
  }
}

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