Go: package main

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

var (
	sc = bufio.NewScanner(os.Stdin)
)

func main() {
	for sc.Scan() {
		chunks := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

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

C++: #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include<iomanip>
#include<vector>
#include<cmath>
#include <algorithm>

using namespace std;

int main(){
	int a,b;
	while (scanf("%d %d",&a,&b) != -1){
		string s = to_string(a + b);
		cout << s.length() << endl;
	}
}

C++: #include <bits/stdc++.h>
using namespace std;
int main(void){
    int a,b,c,i;
    while ( scanf("%d %d",&a,&b) !=EOF ) {
        c = a + b;
        int count = 0;
        for (i=0;c!=0;i++) {
            c /= 10;
        }
        printf("%d\n",i);
    }
}

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

int main() {
    int a, b;

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

    return 0;
}

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

C++: #include <iostream>

using namespace std;

int main(void)
{
	int a, b;
        int keta = 1;

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

	}

	cout << keta << endl;

	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef long long ll;
// Welcome to my source code!

int main() {
    int a, b;
    while (cin >> a >> b) {
        int t = a + b;
        int digit = (a + b ? 1 : 0);
        while (t / 10) {
            t /= 10;
            digit++;
        }
        cout << digit << endl;
    }
}

C++: #include<cstdio>

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

C++: #include<bits/stdc++.h>
using namespace std;

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

C++: #include<stdio.h>
int main(void)
{
	int i,j,temp,y[10];
	for(i=0;i<10;i++){
		scanf("%d",&y[i]);
	}
	for(i=0;i<10;i++){
		for(j=0;j<=10;j++){
			if(y[j]<=y[i]){
				temp=y[i];
				y[i]=y[j];
				y[j]=temp;
			}
		}
	}
	for(i=0;i<3;i++){
		printf("%d\n",y[i]);
	}
	return 0;
}

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

int main()
{
	while(true){
		int a,b,c;
		char str[16];
		cin >> a >>b;

		c = sprintf(str,"%d",a + b);

		cout << c << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <sstream>
int main()
{
        for(uint8_t i=0;i<200;i++)
        {
                std::string str;
                getline(std::cin, str);
                std::stringstream s(str);
                uint32_t a,b;
                s>>a>>b;
                uint32_t sum=a+b;
                uint8_t count;
                for(count=0;sum>0;count++)
                        sum=sum/10;
                if(count==0)
                        count++;
                printf("%u\n",count);
        }

        return 0;
}