Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func Sliceconvtoi() []int {
	strs := strings.Split(sc.Text(), " ")

	var ints []int
	var x int

	for _, s := range strs {
		x, _ = strconv.Atoi(s)
		ints = append(ints, x)
	}

	return ints
}

func main() {
	for sc.Scan() {
		i := Sliceconvtoi()
		fmt.Println(int(math.Log10(float64(i[0]+i[1]))) + 1)
	}

}

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

using namespace std;

int main()
{
	int deta;
	int deta2;
	int a, total;

	while (scanf ("%d %d", &deta, &deta2) != EOF){
		a = deta + deta2;
		total = 0;

		while (1){
			if (a < 10){
				total++;
				break;
			}
			else {
				a = a / 10;
				total++;
			}
		}
		printf("%d\n", total);
	}

	return 0;
}

C++: #include<iostream>

int Digit(int x)
{
	int n=0;

	do
	{
		x/=10;

		++n;
	}
	while(x>=1);

	return n;
}

int main()
{
	int a, b;

	while(std::cin >> a >> b)
	{
		std::cout << Digit(a+b) << '\n';
	}
}

C++: #include<iostream>
using namespace std;
int main(){
  int a[3];
  int b[3];
  int ans;
  for(int i=0;i<3;i++){
    cin >> a[i] >> b[i];
    ans = a[i] + b[i];
    if(ans>=0 && ans<=99){
      cout << "2" <<endl;
    }
    if(ans>=100 && ans<=999){
      cout << "3" <<endl;
    }
    if(ans>=1000 && ans<=1999){
      cout << "4" <<endl;
    }
  }
  return 0;
}

C++: #include <sstream>
#include <iostream>
#include <string>
 
using namespace std;
int main(){
	string str1, str2;
	cin >> str1 >> str2;
	cout << str1.length()+str2.length() << endl;
}

C++: #include <cstdio>
#include <algorithm>
#define ele long
using namespace std;
ele a,b;
inline ele d(ele x){
	if (x==0) return 1;
	ele s=0;
	while (x>0){
		++s;
		x/=10;
	}
	return s; 
}
int main(){
	while (~scanf("%d%d",&a,&b)) printf("%d\n",d(a+b));
	return 0;
}

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

int main(){
	int a, b;
	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;
	}
}

C++: #include <cstdio>
#include <algorithm>
#include <iostream>
#include <cmath>
using namespace std;
int main(){
	int a,b,c,i;
    while(cin>>a>>b){
    	for(i=1;i<=7;i++){
    		c=pow(10,i);
    		if((a+b)/c==0){
    			cout<<i<<endl;break;goto p1;
    		}
    	}
    }
    p1:return 0;
}

C++: #include<iostream>
#include<vector>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <list>
#include <map>
#include <sstream>
#include <cmath>
#include <ctime>
#include <bitset>
#include <utility>
#include <set>
#include <numeric>

using namespace std;

int main()
{
    long long a,b,c,sum;
    //freopen("11854.txt","r",stdin);
    while(scanf("%llu %llu",&a,&b)==2)
    {
        sum=0;
        c=0;
        sum=a+b;
        while(sum!=0)
        {
            sum=sum/10;
            c++;
        }
        printf("%llu\n",c);
    }
    return 0;
}

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

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

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

int main() {
	int a, b;
	scanf("%d%d", &a, &b);
	int c = to_string(a + b).length();
	printf("%d\n", c);
}

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

using namespace std;

int main(){
	int a,b;
while(cin>>a>>b){
	}
	int n=a+b;
	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(2>99){
		cout<<5<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767556";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

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

}
return 0;
}

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

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

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

using namespace std;

int digit(int num){
	if((num / 10) > 0){
		return (digit(num/10))+1;
	}
	else return 1;
}

int main(){
	int num1,num2,result=0;
	char buf[64];
	while(1){
		fgets(buf, 64, stdin);
		if(buf[0] == '\0')break;
		num1 = 0;
		num2 = 0;
		sprintf(buf,"%d %d",num1,num2);
		result += digit(num1);
		result += digit(num2);
		cout << result << endl;
	}
	return 0;
}

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

C++: #include <stdio.h>

int main() {
    
    int l, m, n, i;
    
    while (1) {
        
        scanf("%d %d", &l, &m);
        if (l == EOF || m == EOF) break;
        n = l + m;
        
        for (i = 1; n >= 9; i++) {
            n /= 10;
        }
        
        
        printf("%d\n", i);
        
    }
    return 0;
}

C++: #include<iostream>


using namespace std;


int main(){
	int a=0,b=0,c,i;

	while(cin >> a >> b){
		i=1;
		c = a+b;
	
		while(c>=10){
			c = c/10;
			i++;
		}
	cout << i << endl;

	}
}

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

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

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

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

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

int digitCount(int number)
{
    int result = 1;
    while (number > 9) {
        number /= 10;
        result++;
    }
    return result;
}

int main(int argc, const char * argv[]) {

    std::string line;
    std::vector<int> sum;
    int n1 = 0;
    int n2 = 0;
    
    while (std::getline(std::cin, line))
    {
        sscanf((const char*) line.c_str(), "%d %d", &n1, &n2);
        sum.push_back(digitCount(n1 + n2));
        
    }
    //std::cout << std::endl;
    //std::cout << std::endl;
    
    std::vector<int>::iterator it = sum.begin();
    std::cout << *it << std::endl;
    
    while (++it < sum.end()) {
        
        std::cout << *it << std::endl;
    }
    
    return 0;
}

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

int main() {

	while(cin){
	unsigned int a, b;
	cin >> a >> b;

	int unsigned digit = 0, quotient = a + b;
	while(quotient != 0){
		quotient /= 10;
		digit++;
	}
	cout << digit << endl;
	}

	return 0;
}

C++: #include <iostream>
 
int main(){
    int a, b;
     
    while(std::cin >> a >> b){
        int n = a + b;
        int count = 1;
        //10??§?????£???0??§???????????°?????°????¢???????
        while(n / 10 != 0){
            ++count;
            n /= 10;
        }
        std::cout << count << std::endl;
    }
    return 0;
}

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

int main()
{
    long long int n,m,j,k,l,i;
    while(scanf("%lld%lld",&n,&m)==2)
    {
        k=0;
        j=n+m;
        for(i=j;i>=1;i/=10)
            k++;
            printf("%lld\n",k);
    }
    return 0;
}