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 <stdio.h>
#include <string.h>

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

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

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

int main()
{
  while (true) {
    int a, b;
    
    if (!cin >> a >> b) break;
    int c = a + b;
    int i;
    for (i = 1; c != 0; i++) {
      c /= 10;
    }
    cout << i << endl;

  }
  return 0;
}

C++: #include<cstdio>

using namespace std;

int  check_num(int in){
  int a=1,i=0;
  while(in>=a){
    ++i;
    a*=10;
  }
  if(i==0){
    return 1;
  }
  return i;
}

int main(){
  char input[32];
  
  while(fgets(input,32,stdin)!=NULL){
    int num1,num2;
    sscanf(input,"%d %d",&num1,&num2);    
    
    printf("%d\n",check_num(num1+num2));
  }
  
   
  return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
		int sum=a+b,cnt=0;
		while(sum)	sum/=10,cnt++;
		cout<<cnt<<endl;
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
  int a,b,sum,count;
  while( cin >> a >> b ){
    count=0;
    sum = a + b;
    while( sum > 0 ){
      count++;
      sum /= 10;
    }
    cout << count << endl;
  }
}

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

int keta(int x){
	int i=0;
	while (x/pow(10,i)>=1){
		i++;
	}
	return i;
	}
int main(){


	while(true){
int a1,b1;
cin>>a1>>b1;
cout<<keta(a1)+keta(b1)<<endl;
	}
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <sstream>
 
using namespace std;
 
int main(){
    int a, b;
    stringstream s;
    while(cin >> a >> b){
    s.str("");
    s << a + b;
    cout << s.str().size() << endl;
    }
    return 0;
}

C++: //#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
    int a,b;
    while(cin>>a>>b)
    {
        int sum=a+b,z=0;
        while(sum!=0)
        {
            z++;
            sum/=10;

        }
       cout<<z<<endl;
    }


    return 0;
}

C++: #include <iostream>
#include<vector>
#include<stdlib.h>
#include<algorithm>
#include<string>
using namespace std;



int main(void){

	int a, b, sum = 0, count;

	for (; cin;){//??°????????????????????°?????????
		count = 0;
		cin >> a >> b;
		sum = a + b;

		while (sum != 0){


			sum /= 10;
			++count;

		}

		cout << count << endl;
	}

return 0;

}

C++: #include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;
int main()
{
	ll a,b,sum;
	while (scanf("%lld %lld",&a, &b)!=EOF){
		ll c=0;
		sum=a+b;
		while(sum!=0){
			sum=sum/10;
			c++;
		}
		printf("%lld\n",c);	
	}
	return 0;
}

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

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

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

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

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

int main(){
        while(1){
                int a, b;
                scanf("%d %d", &a, &b);
                double temp =log10(a + b);
                cout << floor(temp) << endl;
        }
        return 0;
}

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

C++: #include<iostream>
#include<string>
#include <stdlib.h>
using namespace std;
int main()
{
    long a, b, sum;
    while (!cin.eof())
    {
        int k=0;
        cin>>a>>b;
        sum=a+b;
        while(sum>9)
        {
            sum=sum/10;
            k++;
        }

        cout<<k+1<<endl;

    }
    return 0;
}

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

int main()
{
	int a, b, sum;
	
	while (scanf("%d %d", &a, &b) != EOF){
		int ans = 0;
		sum = a + b;
		while (sum > 0){
			sum /= 10;
			ans++;
		}
		printf("%d\n", ans);
	}
	return (0);
}

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


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

	return 0;
}

C++: #include<stdio.h>

int main(void){

	int a,b,i,sum;
	char ch;
	
	while(ch=getchar()!=EOF){
		scanf("%d %d",&a,&b);
	
		sum=a+b;
	
		i=1;
		while(sum>9){
			sum=sum/10;
			i++;
		}

		printf("%d\n",i);
	}
}

C++: #include<cstdio>
int main(void){
int a,b,i,s;
while(scanf("%d",&a)!=EOF){
 scanf("%d",&b);
 s=a+b;
 for(i=1;s>0;i++){
  s/=10;
 }
 printf("%d\n",i);
}
return 0;
}

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

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

int datas[2][200] ;
int datanum ;

int sum[200] ;
int solve[200] ;

int main()
{
	cin >> datanum ;

	for( int i = 0 ; i < datanum ; i ++ )
	{
		cin >> datas[0][i] ;
		cin >> datas[1][i] ;

		sum[i] = datas[0][i] + datas[1][i] ;
	}

	for( int i = 0 ; i < datanum ; i ++ )
	{
		for( int j = 1 ; j < 7 ; j ++ )
		{
			if( (sum[i] / 10*j) < 10 )
			{
				solve[i] = j+1 ;
				j = 10 ;

				cout << solve[i] << "\n" ;
			}
		}
	}

	_getch() ;
	return 0 ;
}

C++: #include <bits/stdc++.h>
using namespace std;
int a, b;
int main() {
    while(cin >> a >> b) {
        cout << (int)(log10(a + b)) + 1 << endl;
    }
}

C++: #include<iostream>
#include<stdio.h>
using namespace std;
int main() {
	const int DAT_LIMIT = 200;
	int a,b;
	int cnt = 0;
	while(cin >> a >> b && cnt < DAT_LIMIT) {
		int c = a+b;
		int digit = 1;
		while(c / 10 != 0) {
			digit++;
			c = c / 10;
		}
		cout << digit << endl;
		cnt++;
	}
	return 0;
}

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

int main(){
  int a, b, out=0;

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

  cout << out << endl;

	return 0;
}

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

int main(void) {
  int a, b;
  while(scanf("%d%d", &a, &b)) {
    int c = a + b;
    int d = (int)log10(c);
    printf("%d\n", d);
  }
  return 0;
}

C++: #include <stdio.h>

int main()
{
    int a, b, n, result;
    
    while (scanf("%d %d", &a, &b) != EOF) {
        n = a + b;
        result = 0;
        
        while (n != 0) {
            n /= 10;
            result++;
        }
        
        printf("%d\n", result);
    }
    
    return 0;
}

C++: #include<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<set>
#include<functional>
#include<queue>
#include<math.h>
#define INF 999999

using namespace std;

int main()
{
	int ans[210];

	int a, b;
	int k = 0;
	while(cin>>a>>b){
			int c = a + b;
			int d = c;
			int count = 0;
			while (d != 0) {
				d = d / 10;
				count++;
			}
			ans[k] = count;
			k++;
		
	}

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

	return 0;
}

C++: #include<cstdio>

int main(){

	int a, b, sum=0, x;
	scanf("%d, %d", a, b);
	sum = a+b;

	if(sum<10) x=1;
	else if(10<=sum && sum<100) x=2;
	else if(100<=sum && sum<1000) x=3;
	else if(1000<=sum && sum<10000) x=4;
	else if(10000<=sum && sum<100000) x=5;
	else if(100000<=sum && sum<1000000) x=6;

	printf("%d",x);

	return 0;
}