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

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

using namespace std;

 string IntToString(int num){
	stringstream ss;
	ss << num;
	return ss.str();
}


int main(void){
	int count = 0;
	while (count < 200){
		int a, b;
		cin >> a >> b;
		if (((a < 0) || (b < 0)) || ((1000000 < a) || (1000000 < b))){
			break;
		}

		int sum = a + b;
		string str = IntToString(sum);
		cout << str.length() << endl;
		++count;
	}

	return 0;
}

C++: #include<stdio.h>
 
int main(){
 int a,b,c;
 while(scanf("%d%d",&a,&b)){
 c=0;
 a+=b;
 while(a){
 a/=10;
 c++;
}
printf("%d\n",c);
}
return 0;
}

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

int stoi(std::string);
std::string itos(int);

int main(){
    int sum,digits[200]={0};
    std::string input,output;


    std::ios::sync_with_stdio(false);

    input = "";
    for (int i=0;i<200;i++){
        sum = 0;

        for (int j=0;j<2;j++){
            if((int)std::cin.eof()) goto end;
            std::cin >> input;
            sum += stoi(input);
        }
        output = itos(sum);
        digits[i] = (int)output.length();
    }
    end:
    for (int i=0;digits[i];i++){
        std::cout << digits[i] << std::endl;
    }
}

int stoi(std::string s){
    std::stringstream ss;
    int i;
    ss << s;
    ss >> i;
    return i;
}

std::string itos(int i){
    std::stringstream ss;
    std::string str;
    ss << i;
    ss >> str;
    return str;
}