Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int

		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}

		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

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

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

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

C++: #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
int main() {
	int i, a, b, c;
	while (cin >> a >> b) {
		c = a + b;
		for (i = 1; c >= 10; i++) {
			c /= 10;
		}
		printf("%d\n", i);
	}	
		return 0;
}

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

int main(){
	int a, b, sum;

	while(1){
		cin >> a >> b;
		sum = a + b;

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

	return 0;
}

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


int main(){
	int a, b, c;
	int i;
	while (a != EOF || b != EOF){
		cin >> a >> b;
		c = a + b;
		i = 1;
		while (c > 9){
			c = c / 10;
			i++;
		}
		cout << i << endl;
	}

	return 0;
}

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

using namespace std;

int countDigit(int num){
	int i;
	for(i=1;pow(10,i)<=num;i++);
	return i;
}

int main(){
    int i,a,b;
    while(1)
        scanf("%d %d",&a,&b);
        printf("%d\n",countDigit(a+b));
    }
    return 0;
}

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==104) break;
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

int main()
{
  long n1, n2;
  int ans = 0;
  cin >> n1 >> n2;
  int sum = n1 + n2;
  while(sum > 0){
    sum /= 10;
    ans++;
  }
  ans = (n1 == 0 & n2 == 0) ? 1 : ans;
  cout << ans << endl;
}

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

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

C++: #include <iostream>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <stdlib.h>
using namespace std;
int main(){
    int a,b,count,s;
 
    while(scanf("%d %d",&a,&b)!=EOF){
        count=0;
        s=a+b;
        while(s!=0){
            s/=10;
            count++;
        }
        printf("%d\n",count);
    }
 
    return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <cstring>
#include <climits>
#include <cmath>
#include <cfloat>

#define FOR(i,b,n) for(int i=b;i<n;i++)
#define CLR(mat) memset(mat, 0, sizeof(mat))
#define INF 1<<25

using namespace std;

int a, b;

int main()
{

	while( cin >> a >> b, !cin.eof() )
	{
		int c = a+b;
		char str[100];
		sprintf( str, "%d", c );

		string s;
		s += str;

		cout << s.size() << endl;
	}

	return 0;

}

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

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

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

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

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

C++: #include<stdio.h>

int main()
{
	unsigned int a,b,sum;
	unsigned char digits;

	while(scanf("%d %d",&a,&b) == 2)
	{
		sum = a + b;
		digits = 0;

		while(sum != 0)	
		{
			digits++;
			sum = sum / 10;
		}
		printf("%d\n",digits);
	}
	return 0;
}

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

int main()
{
	  int a,b,sum=0;
	  while((scanf("%d", &a) != EOF)&&scanf("%d", &b) != EOF)
	  {
	  int lengthA=1,lengthB=1;
	  while(a/=10)
          {lengthA++;}		   		
	  while(b/=10)
	  {lengthB++;}
	  cout<<lengthA+lengthB<<endl;
	  }	   
          return 0;
}

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

main(void){
    int a[3],b[3],c[3];
    
    scanf("%d %d", &a[0], &a[1]);
    scanf("%d %d", &b[0], &b[1]);
    scanf("%d %d", &c[0], &c[1]);
    
    a[0] = a[0] + a[1];
    b[0] = b[0] + b[1];
    c[0] = c[0] + c[1];
    
    for( a[3] = 0; a[0] > 1; a[3]++) a[0] / 10;
    for( b[3] = 0; b[0] > 1; b[3]++) b[0] / 10;
    for( c[3] = 0; c[0] > 1; c[3]++) c[0] / 10;
    
    printf("%d\n%d\n%d\n", a[3], b[3], c[3]);

    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i=0;i<n;i++)

int ketasu(int n) {
  int ans=0;
  while (n!=0) {
    n/=10;
    ans++;
  }
  return ans;
}

int main() {
  int a,b;
  while (cin>>a>>b) {
    cout<<ketasu(a+b)<<endl;
  }
  return 0;
}

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

int func(int i){
    if(i<10)return 1;
    else return (1+func(i/10));
}

int main(){
    int a,b;
    while(cin >> a >> b){
        cout << func(a+b) << endl;
    }
    return 0;
}

C++: #include <stdio.h>
int main( void ){
  
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\n",j );
    return 0;
}

C++: #include <sstream>

#include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int a, b;
	cin >> a >> b;
	string x=to_string(a+b);
	cout << x.size() << endl;
	return 0;
}

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

#pragma warning(disable:4996)
#define MAX_DATA (200)
int main()
{
	char Work[MAX_DATA][256];

	int Num[2];
	int Divide;
	int nCnt2,nCnt = 0, Result, Keta = 1;

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
		gets(Work[nCnt2]);

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
	{
		for (nCnt = 0; Work[nCnt] != '\0'; nCnt++)
		{
			if (Work[nCnt2][nCnt] == ' ')
			{
				char Work2[256];
				char Work3[256];

				strcpy(Work2, &Work[nCnt2][nCnt]);

				Work[nCnt2][nCnt] = '\0';

				strcpy(Work3, Work[nCnt2]);

				Num[0] = atoi(Work3);
				Num[1] = atoi(Work2);
				break;
			}
		}

		Result = Num[0] + Num[1];

		Keta = 1;
		for (nCnt = 0; ;nCnt++)
		{
			Result = Result / 10.0f;

			if (Result > 0)
				Keta++;
			else
				break;
		}

		printf("%d\n", Keta);
	}
	
	return 0;
}

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

int main()
{
	int a,b,c;
	while(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++: //#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
//#include <cstdio>
//#include <cstdlib>
//#include <cmath>
#include <iostream>
#include <algorithm>
//#include <cstring>
#include <vector>
#include <string>
#include <map>
#include <list>
#include <queue>
#include <set>
using namespace std;

int main(void){

	int a, b;
	
	while(cin >> a >> b){
	
	string num = std::to_string(a+b);
	
	cout << num.size() << endl;
	}

	return 0;
}

/*
for(i=0;i<N;i++){
	cin >> X[i];
}


for(i=0;i<N;i++){
	for(j=0;j<N;j++){
		cin >> X[i][j];
	}
}
*/