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++: /* All men have limits. They learn what they are and learn
   not to exceed them, I ignore mine. -Batman           */

#include <iostream>
//#include	 <Windows.h>
using namespace std;

int x,y,z;
int main(){
	cin>>x>>y;
	z=x+y;
while(cin>>x>>y){
if (z>=0){
 if(z<10){
 	cout<<1<<endl;}
 else
  if(z<100){
  	cout<<2<<endl;}
  else
   if(z<1000){
   	cout<<3<<endl;}
   else
    if(z<10000){
    	cout<<4<<endl;}
    else
     if(z<100000){
     	cout<<5<<endl;}
     else
      if(z<1000000){
      	cout<<6<<endl;}
      else
        cout<<7<<endl;}}

return 0;
}

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

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

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

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

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
	int t=8700;
	for(int i=t;i;i--){
		for(int j=i;j;j--){
			if(i+j==2)a+=b;
		}
	}
	int cnt=0;
	while(a)a/=10,cnt++;
	cout<<cnt<<endl;
	}
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define REP(i,N) for(int i = 0; i < (int)N; i++)

int main(){
	int hako[200][2];
	int i=0;
	while(cin >> hako[i][0] >> hako[i][1]){
		i++;
	}
	REP(j,i){
		int a=0;
		int sum = hako[j][0] + hako[j][1];
		while(sum > 0) sum/10,a++;
		cout << a <<endl;
	}
	return 0;
}

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

int main() {
	int a, b, i;
	double sum;
	while(cin >> a >> b){
		sum = a + b;
		for(i = 1; sum >= 10; i++){
			sum /= 10;
		}
		cout << i << endl;
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
    int a[200],b[200];
    int i = 0;
    while(cin){
        cin >> a[i] >> b[i];
        i++;
    }
    for(int j=0; j < i-1; j++ ){
        int c = a[j] + b[j];
        int count = 0;
        while(c > 0){
            c = c  / 10;
            count++;
        }
        cout << count << endl;
    }
    return 0;
}

C++: #include <iostream>

int main(){

  int a[200];
  int b[200];

  int i=0;

  while(std::cin >> a[i] >> b[i]){
    ++i;
  }
  int k;

  for(int j=0;j<i;j++){
    a[j] += b[j];
    k=0;
    do{
      a[j] %= 10;
      ++k;
    }while(a[j]!=0);

    std::cout << k << std::endl;
  }
}

C++: #include <stdio.h>
#include <stdlib.h>


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

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

// {{{ put
void newline() {cout << endl;}
template <typename T> void display(T input){cout << input;}
template <typename T> void put(T input){display(input); newline();}
// }}}

int digit_num(int n){
  return n >= 10 ? 1 + digit_num(n / 10)
                 : 1;
}

int main() {
  int a, b;
  while(cin >> a){
    cin >> b;
    put(digit_num(a + b));
  }
}

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

int main()
{
	unsigned int a, b, c;
//	while (1) {
		cin >> a >> b;
		a = a + b;
		c = 1;
		while (a != 0) {
			c++;
			a /= 10;
		}
		cout << c << endl;
//	}
    return 0;
}

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

int main() {
  int i;
  int a,b;
  while(scanf("%d %d",&a, &b) != EOF) {
    int c = a+b;
    for(i = 1; i < 9; i++) {
      if(c/(int)pow(10,i) == 0) {
	printf("%d\n",i);
	break;
      }
    }
  }

  return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<string>
int main(){
    string a, b;
    while(cin >> a >> b){
        printf("%d %d\n", a.length(), b.length());
    }
}

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

using namespace std;

#define rep(i,n) for(int i = 0; i < n; i++)
#define REP(i,j,n) for(int i = j; i < n; i++)


int main(){

	int a,b;
	int sum = 0;
	cin >> a >> b;

	sum = a + b;
	
	int x = 1;

	while(sum / 10 > 0){
		x++;
		sum = sum / 10;
	}

	cout << x << endl;

	return 0;
}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main(){
	int ab[200][2],f,i=0,a,g,k=0;
	while(cin>>f){
		scanf("%d %d",&ab[i][1],&ab[i][2]);
		i++;
	}
	for(int j=0;j<i;j++){
		a=ab[j][1]+ab[j][2];
		for(g=0;;g++){
			a=a/10;
			k++;
			if(a==0){
				printf("%d\n",k);
				break;
			}
		}
		k=0;
	}
	return 0;
}

C++: #include <stdio.h>int main( void ){
    int l = 0;
do{    int a,b;    scanf( "%d %d",&a,&b );      a = a + b;       int n = 1;      int j = 0;      while( true ){            if( a / n >= 1 ) n *= 10;            else               break;          j++;          }      printf( "%d",j ); }while( l < 200;l++ );    return 0;}

C++: #include<iostream>
#include<algorithm>
#include<cmath>
#include<string>
#include<vector>

using namespace std;

int main()
{
	int a[200], b[200], n, ans=0;
	for (int i = 0; i < 200; i++) 
	{
		cin >> a[i] >> b[i];
		n = a[i] + b[i];
		while (n >= 1) 
		{
			n /= 10;
			ans++;
		}
		cout << ans << endl;
		ans = 0;
	}
}

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

typedef long long ll;

int main(void)
{
    ll a , b;

    while(cin >> a >> b){

        a = a+b;

        b = 0;

        while(a!=0){
            b++;
            a/=10;
        }

        cout << b << endl;
    }

    return 0;

}

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

int main(){
const int INF=10000000;
int a,b,c,ans;
while(cin>>a>>b){
ans=1;
a+=b;
for(int i=0;i<INF;i++){
c=a%10;
a-=c;
if(a==0){break;}
if(a!=0){
ans++;
a/=10;}}
cout<<ans;}}

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


int main(){
    int a, b;

    while (scanf("%d%d", &a, &b) != EOF){
	int c = a + b;
	int digit = 1;
	while (c >= 10){
	    c = c / 10;
	    digit++;
	}
	cout << digit << endl;
    }
}

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

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

int main(){

  vector<long int> array1(6,0);
  vector<long int> array2(3,0);
  vector<int>      array3(3,1);

  for(int i = 0;i<6;i++){
    cin >> array1[i];
  }

  for(int i = 0; i < 3;i++){
    array2[i] = array1[2*i] + array1[2*i+1];
  }

  for(int i = 0; i < 3;i++){
    while(array2[i] / 10 != 0){

      array3[i]++;
      array2[i] /= 10;

    }
  }

  for(int i = 0; i < 3;i++){
    cout  << array3[i] << endl;
  }


    return 0;
}

C++: #include<iostream>
using namespace std;
 
int main(){
    int a,b,c,r;
    int n;
 
    while(cin>>a>>b){
        c=a+b;
        n =10;
        for(int i =0;i<6;i++){
            if(c%n == c){
                cout<<i+1<<endl;
                break;
            }
            n = n*10;
        }
    }
    return 0;
}

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

using namespace std;
int i,a,b;
string s;

int main() {
	while(cin>>a>>b){
		a = a+b;
		s = std::to_string(a);
		cout << s.size() << endl;
	}
	return 0;
}