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>
using namespace std;

int main(void){
	int a,b,T,c,d,e,f,g,h,i,A=0;
	while(cin>>a>>b){
		cin>>a>>b;
		T=a+b;
		
		c=T/1000000;
		if(c>=1) A=A+1;
		
		d=T/100000;
		if(d>=1)A=A+1;
		
		e=T/10000;
		if(e>=1)A=A+1;
		
		f=T/1000;
		if(f>=1)A=A+1;
		
		g=T/100;
		if(f>=1)A=A+1;
		
		h=T/10;
		if(h>=1)A=A+1;
		
		i=T/1;
		if(i>=1)A=A+1;
		
		cout<<A<<endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
	int a,b, count;
	while( cin >>a>>b ) {
		count = 1;
		a += b;
		while( a > 9 ){
			a /= 10;
			count++;
		}
		cout << count << endl;
	}


	return 0;
}

C++: #include <stdio.h>

int main()
{
	int a,b;

	while(1)
	{
		int kai;
		int i = 1;
		int j = scanf("%d %d" , &a,&b);
		if(j==EOF) break;

		kai = a+b;

		while(kai > 9)
		{
			kai /= 10;
			i++;
		}

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

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

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

C++: #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
         int n,m,c=0;
        while(cin>>n>>m)
        {
            int sum=n+m;
            if(sum==0){
                c++;
            }
            while(sum!=0){
                sum=sum/10;
                c++;
            }


        }
         cout<<c<<endl;
    }

C++: #include<iostream>
using namaspace std;
int main()
{
while(scanf("%d %d",&a,&b) != EOF)
{
sum = a + b;
	while (sum > 0){
		sum /= 10;
		result++;
	}
	cout << result;
}

return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int i,j,cnt=1,a,b,c;
	for(j=0;j<3;j++){
		scanf("%d %d",&a,&b);
		c=a+b;
		for(i=0;c!=0;i++){
			c/=10;
		}
	}
		printf("%d\n",i);
	return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#define ll long long
using namespace std;
int main()
{
    //int k,i,j,tep,x,a[170],m;
    int a,b,c,d,e,f,n;
   // long long int n;
    while(cin>>a>>b)
    {
        cout<<(int)log10(a+b)+1<<endl;
    }

    return 0;
}

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

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    int x,y;
    while(cin>>x>>y){
        x+=y;
        int c=1;
        while(x/=10)++c;
        cout<<c<<'\n';
    }
    return 0;
}

C++: #include<stdio.h>
int main(void)
{
    int a,b,i,n;
	scanf("%d %d",&a,&b);
	a=a+b;
	n=1;
	for(i=1;i<8;i++){
		if(n>a){
			break;
		}
		n=n*10;
	}
	printf("%d\n",i-1);
	return 0;
}

C++: #include<iostream>
#include<cstring> 
#include<sstream>
using namespace std;
int main()
{
    long long x, y, a;
    
    while(cin>>x>>y) {
        a=x+y;
        ostringstream os;
        os << a;
        string b = os.str();
        
        cout<< b.size() << endl;
    }
    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<iostream>
int main(){
	int a,b;
	std::cin>>a>>b;
	int c=a+b;
	if(c>=1000000)std::cout<<7<<std::endl;
	else if(c>=100000)std::cout<<6<<std::endl;
	else if(c>=10000)std::cout<<5<<std::endl;
	else if(c>=1000)std::cout<<4<<std::endl;
	else if(c>=100)std::cout<<3<<std::endl;
	else if(c>=10)std::cout<<2<<std::endl;
	else std::cout<<1<<std::endl;
	return 0;
}

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

int main(){
	int a, b;
	while(cin >> a >> b){
		printf("%d",(int)log10((double)a+b) + 1);
	}
}

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

			result = 0;
			sum = a + b;
			while (sum > 0){
				sum /= 10;
				result++;
			}
			cout <<result<<endl;
		}
		return 0;
}

C++: #include<iostream>
#include<string>
#include <algorithm>
#include<iomanip>
#include<cmath>
using std::cin; using std::string;
using std::cout; using std::endl;
using std::sort;
#define rep(X,Y) for(int (X)=0;(X)<(Y);++(X))
#define rept(X,Y,Z) for(int (X)=(Y);(X)<(Z);++(X))
#define repr(X,Y) for(int (X)=(Y);(X)>=0;--(X))
const double pi=3.141592653589793283462;
int main(){
	int m,n;
	int cm=1,cn=1;
	while(cin>>m>>n){
	for(int i=0;i<7;i++){
		    if(m/10>10){
				    m/=10;
					cm++;
			}
			if(n/10>10){
			     n/=10;
				 cn++;
			}
		}
	cout<<cm+cn<<endl;
	cm=1;
	cn=1;
	}
	return 0;
}

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

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

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

using namespace std;

int main()
{
    int a, b;

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7762";
	
	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>
using namespace std;
int main()
{
int a,b;
int c[200][2]
for(int i=0;i<200,i++)
{
c[i][0]=a;
c[i][1]=b;
cin>>a>>b;
}
for(int j=0;j<200,j++)
{
if(c[j][1]+c[j][1]<10)
{
	cout<<1<<endl;
}
else if(c[j][0]+c[j][1]<100)
{
	cout<<2<<endl;
}
else if(c[j][0]+c[j][1]<1000)
{
	cout<<3<<endl;
}
else if(c[j][0]+c[j][1]<10000)
{
	cout<<4<<endl;
}
else if(c[j][0]+c[j][1]<100000)
{
	cout<<5<<endl;
}
else if(c[j][0]+c[j][1]<1000000)
{
	cout<<6<<endl;
}
else
{
	cout<<7<<endl;
}
}
return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int digits(int n) {
  if (n == 0) return 0;
  return 1 + digits(n / 10);
}

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

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <queue>
#include <set>
#include <numeric>
#include <cmath>

using namespace std;

typedef long long int lld;

const lld mod = 1e9+7;
const lld INF = 1e9;
//const lld MAXN = 1e9;

int main()
{
	int a,b;
	while(cin>>a>>b)
	{
		int cnt = 0;
		while(a>0)
		{
			if (a%10!=0)
			{
				cnt++;
			}
			a /= 10;
		}

		while(b>0)
		{
			if (b%10!=0)
			{
				cnt++;
			}
			b /= 10;
		}
		
		cout << cnt << endl;
	}

	return 0;
}

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

using namespace std;
unsigned a,b;
int s;
int Count;
int main(){
  for(int i = 0;i < 3;i++){
  Count = 0;
  scanf("%u %u",&a,&b);
  s = a+b;
  for(; s !=0; s/=10){
    Count++;
  }
  cout << Count<<endl;
  }
}