Go: package main

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

func sliceAtoi(sa []string) ([]int, error) {
	si := make([]int, 0, len(sa))
	for _, a := range sa {
		i, err := strconv.Atoi(a)
		if err != nil {
			return si, err
		}
		si = append(si, i)
	}
	return si, nil
}

func getDigits(ary []int) (digits int) {
	sum := 0
	for _, v := range ary {
		sum += v
	}

	for sum != 0 {
		sum /= 10
		digits++
	}
	return
}

func getsTwoNumAsArray() (nums [][]int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}

		ary, _ := sliceAtoi(strings.Split(str, " "))
		nums = append(nums, ary)
	}

	return
}

func main() {
	ary := getsTwoNumAsArray()

	for _, v := range ary {
		fmt.Println(getDigits(v))
	}
}

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

int main(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		if(cnt==103) break;
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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


int digit( int n ){
    int d = 0;
    while( n != 0 ){
        n /= 10;
        d++;
    }
    return d;
}

int main(){
    string str;
    while (getline(cin, str)) {
        istringstream stream(str);
        int a, b;
        stream >> a >> b;
        cout << digit(a+b) << endl;
    }

    return 0;
}

C++: #include<iostream>
#include<string>
#include <algorithm>
#include<iomanip>
#include<cmath>
using std::cin; using std::string;
using std::cout; using std::endl;
using std::sort;
#define rep(X,Y) for(int (X)=0;(X)<(Y);++(X))
#define rept(X,Y,Z) for(int (X)=(Y);(X)<(Z);++(X))
#define repr(X,Y) for(int (X)=(Y);(X)>=0;--(X))
const double pi=3.141592653589793283462;
int main(){
    int a,b,c;
	while(cin>>a>>b){
	int co=1;
	c=a+b;
	while(1){
		if(c/10>=1){
			co+=1;
			c/=10;
		}
		else
			break;
	}
	cout<<co<<endl;
	co=1;
	}
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;
		//-----test-----
		if(a<1180) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include "stdio.h"

int main(){
	int a=0,b=0,c=0,count=0,i;
	for(i=0;i<=3;i++){
	scanf("%d %d",&a,&b);
	c = a + b;
	while(c > 0){
		c = c/10;
		count++;
	}
	printf("%d\n",count);
	count = 0;
	}
}

C++: #include <iostream>
#include <math.h>
#include <algorithm>
using namespace std;

int main()
{
	int a,b,c;
	cin >>a >>b;
	c = a+b;
	int ret = 1;
	for(int i=1;;i++){
		if( c/pow(10,i)>=1){
			ret++;
		}else{
			break;
		}
	}
	cout <<ret <<endl;
    
	return 0;
}

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

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

using namespace std;

int main()
{
	int digit;
	int a = 0, b = 0;
	string sum;

	while ( cin >> a >> b )
	{
		sum = to_string( a + b );
		digit = sum.length();
		cout << digit << endl;
	}

	return 0;

}

C++: #include<cstdio>
#include<string>
using namespace std;
int main(){
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		string c[255];
		printf("%d\n",sprintf(c,"%d",a+b));
	}
	return 0;
}

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

C++: #include<iostream>
#include<cstdio>
#include<math.h>

using namespace std;

int a,b;
int sum;
int ans = 0;
int digit;

int main(){
	while(scanf("%d%d",&a,&b)){
		sum = a + b;
		digit = sum / 10;

		printf("%d\n",(int)log10(sum) + 1);
	}
    return 0;
}

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

int main() {

	vector<int> ans;
	int a, b;
	//int cnt = 0;

	while (1) {
		cin >> a >> b;
		if (cin.eof()) { break; }
		ans.push_back(a + b);
	}

	for (int i = 0; i < ans.size(); i++)
	{
		string str = to_string(ans[i]);
		cout << str.size() << endl;
	}

	return 0;
}

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

using namespace std;

int main(){
	int a,b;
while (cin>>a>>b){
	int n=a+b;
	if(n==1000000){
		cout<<7<<endl;
	}
	else 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()
{
	size_t ix = 0;
	int a[100],b[100];

	while(cin >> a[ix]){
		if(a[ix]<0 || a[ix]>1000000)
			break;
		if(!(cin >> b[ix]))
			break;
		if(b[ix]>0 || b[ix]>1000000)
			break;
		++ix;
	}

	for(size_t count = 0;count != ix;++count){
		int dight,temp = a[count]+b[count];
		for(a[count]+b[count]>1?1:0,dight = 0;;)
			if(temp/=10)
				++dight;
			else
				break;
		cout <<dight<<endl;
	}

	return 0;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    int a,b,n,i,count;
    while(2==scanf("%d %d", &a, &b))
    {
        n = a+b;
        count=0;
        while(n!=0)
        {
            i = n%10;
            n/=10;
            count++;
        }
        cout<<count<<endl;
    }
    return 0;
}

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

int main()
{
	unsigned a,b;
	while(cin>>a>>b)
	{
		int n = a+b;
		int i=0;
		for(; 0<n; ++i)
		{
			n/=10;
		}
		cout << i << '\n';
	}
}

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

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

int main(void){
	while(true){
		long int a, b, d=0, s; //d:digit s:sum
		cin >> a >> b;
		s = a + b;
		while(s>=1){
			s = s/10;
			d++;
		}
		cout << d << endl;
		if(cin.eof()) break;
	}
	return 0;
}

C++: #include<iostream>

using namespace std;

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

C++: #include <bits/stdc++.h>
#include <vector>
using namespace std;
int a, b, x, hasil;
int main(){
	while(cin >> a >> b){
		hasil = 0;
		x = a + b;
		while(x >= 1){
			hasil++;
			x = x / 10;
		}
		cout << hasil << "\n";
	}
	return 0;
}

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

int main() {

  long long int a,b;

  while ( cin >> a >> b ) {

    long long int k = a+b;

    for ( int i = 1; true; i++ ) {
      if ( k < 10 ) {
	cout << i << endl;
	break;
      }
      k /= 10;
    }

  }

  return 0;

}

C++: #include <iostream>
#include <stdio.h>
#include <string>

int main() {
    std::string moji;
    int a, b;
    
    while (1) {
        std::cin >> a >> b;
        moji = std::to_string(a+b);
        if (std::cin.eof()) break;
        std::cout << moji.size() << std::endl;
    }
    
    return 0;
}

C++: #include <stdio.h>

int main(){

	int a=0,b=0,i=0;

	while (i<200 != EOF){
		scanf("%d%d", &a, &b);
		if (a + b < 10){
			printf("1\n");
		}else if(a+b<100){
			printf("2\n");
		}else if (a + b < 1000){
			printf("3\n");
		}else if (a + b < 10000){
			printf("4\n");
		}else if (a + b < 100000){
			printf("5\n"); }
		else{
			printf("6\n");
		}i++;
	}
	return 0;
}

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

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