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>
#include<stdio.h>
using namespace std;

int main(){
	int a, b;

	while(scanf("%d %d", &a, &b) != EOF){
		int ans = 0; a += b;
		while(a / 10 != 0){
			ans++;
			a /= 10;
		}
		ans++;
		cout << ans << endl;
	}
}

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

C++: #include <iostream>

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

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

int main(){
	int a, b;
	list<int> digit;
	
	while((cin>>a>>b).eof()){
		if((a+b)>0){
			string stream c << a+b;
			digit.push_back(c.str().size());
		}
		
	}
	list<int>::iterator it = digit.begin();
	while(it != digit.end()){
		cout << *it << endl;
		it++;		
	}
	
 	return 0;
}

C++: #include <iostream>
using namespace std;
int solve(int a,int b){
    int sum=a+b,ans=0;
    while(sum>0){
        ans++;
        sum/=10;
    }
    return ans;
}
int main(void){
    int a[300]={},b[300]={},i=0;
    cin>>a[0]>>b[0];
    cout<<solve(a[0],b[0])<<endl;
    a[0]=2000000;
    while(a[i]!=a[i+1]&&b[i]!=b[i+1]){
        i++;
        cin>>a[i]>>b[i];
    }
    for(int j=1;j<i;j++){
        cout<<solve(a[j],b[j])<<endl;
    }
    return 0;
}

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


int main(){

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

	return 0;
}

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

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

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

int main(){
  int a,b;
  while(cin >> a >> b){
    cout << to_string(a+b).size() << endl;
  }
}

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

int main(){
	int a,b,c,d=1,e=0,i ;
	//int c[3];

	cin >> a >> b ;

	c = a + b ;

	for(i=1;i<7;i++){
		c = c / 10 ;
		
		if(c == 0) break;

	}

	cout << i << endl ;

    return 0;
}

C++: #include <iostream>

using namespace std;

void digit();

int a, b;

int main() {


	while(cin >> a >> b) {
		digit();
	}

	return 0;

}

void digit() {
	
	int i=0;
	a+=b;

	while(a!=0) {
		a/=10;
		i++;
	}

	cout << i << endl;

}

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

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

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

C++: #include<stdio.h>

int main(){
	int a, b;
	scanf("%d %d", &a, &b);

	int s = a + b;
	int d = 1;
	while(1){
		if(s >= 10){
			s = s/10;
			d++;
		}else{
			break;
		}
	}

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

	return 0;
}

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

using namespace std;

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

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

int main() {
	int a, b;

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

	return  0;
}

C++: #include <iostream>
#include <string>
#include <cstring>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>

using namespace std;

int main()
{
	char buf[2000];
	int a,b,c;

	while(fgets(buf,sizeof(buf),stdin)!=NULL){
		c=1;
		a=atoi(strtok(buf," ")); b=atoi(strtok(NULL,"\n"));
		a+=b; while(a/=10) c++;

		cout<<c<<endl;

	}

}

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

int a, b;
int _sum;

int main() {
	while (1) {
		if (std::cin.eof())
			break;
		std::cin >> a >> b;
		int i = 1;
		a += b;
		while (1) {
			a /= 10;
			if (a == 0)
				break;
			++i;
		}
		_sum = i;
		std::cout << _sum << std::endl;
	}
	return 0;
}

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

int main(){
	int a[400]={0};
	int i=0,n=0,s=0,d=0;
	while(cin>>a[i++]);n=i-1;
	
	for(int j=0;j<n;j+=2){
		cout<<a[j]<<" "<<a[j+1]<<endl;
	}
	
	for(int j=0;j<n;j+=2){
		s=a[j]+a[j+1];
		d=(int)log10((double)s);d++;
		cout<<d<<endl;
	}
	
	return 0;
}

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

C++: #include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main(){
    int a , b;
    while( cin >> a >> b ){
        stringstream ss;
        ss << a+b ;
        string str = ss.str();
        cout << str.size() << endl;
    }
}

C++: #include <stdio.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 <stdio.h>

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

C++: #include <iostream>
int main(void){
	int a,b;
    while (std::cin>>a>>b){
		a+=b;
		b=0;
		do{b++,a/=10;}while(a);
        std::cout<<b<<"\n";
    }
}

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

int main(){

	int a;
	int b;

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

C++: #include<stdio.h>

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

    while(scanf("%d %d",&a,&b) !=EOF){

        printf("%d\n",a+b);

    }


    return 0;
}

C++: #include<stdio.h>
#include<math.h>
int main(void)
{
	int n,a,s,w,i,x,c;
	while(scanf("%d %d",&n,&a)!=EOF)  {
//		c=0;
		w=n+a;	
		for(i=0;w!=0;i++){		
			w=w/10;
//			c++;	
		}
		printf("%d\n",i);
	}
	return 0;
}

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