Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		i := scanner.Text()
		var total int
		inputNum := strings.Fields(i)
		for _, v := range inputNum {
			num, err := strconv.Atoi(v)
			if err != nil {
				break
			}
			total += num
		}
		fmt.Println(DigitCount(strconv.Itoa(total)))
	}
}

func DigitCount(str string) int {
	return len(str)
}

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

using namespace std;

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

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

C++: #include<stdio.h>

using namespace std;

int addf(int a,int b)
{
    int c;
    c=a+b;
    return c;
}

int digitcountf(int n)
{   int x,count= 0;

    while(n>0)
    {
    x=n%10;
    count++;
    n=n/10;
    }
    return count;
 }

int main ()
{
    long long int n,m,a,d;
    while (scanf("%lld %lld",&n,&m)==2)
    {
        a = addf(n,m);
        d = digitcountf(a);
        printf("%lld\n",d);

    }




return 0;
}

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

int main()
{
	int a, b, d, s;
	while(cin >> a >> b) {
		d = 0;
		s = a + b;
		while(s && ++d) s /= 10;
		cout << d << '\n';
	}
}

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

using namespace std;

int main() {

	int a, b, c, count = 0;;

	cin >> a >> b;

	c = a + b;

	while (c) {
		c = c / 10;
		count++;
	}

	cout << count << endl;

	return 0;

}

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

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

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

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

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

int getDigit(int in)
{
  if (in == 0) return 0;
  int ret = 1;

  while (in /= 10) ret++;

  return ret;
}

int main(void)
{
  int a, b;

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

    cout << getDigit(a + b) << 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;
		if (sum == 0){ cout << 0 << endl; }
		else if (sum != 0){

			while (sum > 9){

				sum /= 10;
				count++;

			}
			//?????°???count?????°
			cout << count + 1 << endl;
		}
	}


	return 0;
}

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

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int x,y;
    for(;;){
        cin >> x >> y;
        if(cin.eof())   break;
        cout << to_string(x+y).length() << "\n";
    }
}
template < typename T > std::string to_string( const T& n ){
    std::ostringstream stm ;
    stm << n ;
    return stm.str() ;
}

C++: c[];main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d",sprintf(c,"%d",a+b)));}

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

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

int main(){
  int a,b;
  int an[1000];
  int con[1000];
  int i=0,j,k;

  while(cin>>a>>b){
    an[i] =a + b;
    con[i] = 1;
    while(an[i]>=10){
      an[i] /= 10;
      con[i]++;
    }
    i++;
      }
  for(j=0;j<i;j++){
    cout<<con[j]<<endl;
  }

  return 0;

}

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

using namespace std;

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

    cin >> a;
    cin >> b;

    c = ceil (log10(a+b));

    cout << c << " digit" <<endl;



    return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int a,b,s;
	while(scanf("%d %d",&a,&b)!=EOF){
	s=a+b;
	if(s<10){
		printf("1\n");
	}
	else if(s>9&&s<100){
		printf("2\n");
	}
	else if(s>99&&s<1000){
		printf("3\n");
	}
	else if(s>999&&s<10000){
		printf("4\n");
	}
	else if(s>9999&&s<100000){
		printf("5\n");
	}
	else if(s>99999&&s<1000000){
		printf("6\n");
	}
	else if(s>999999){
		printf("7\n");
	}
	}
	return 0;
}

C++: #include <iostream>
#include <string>
#include <sstream>

int main() {
	int i=0, j=0;
	while( std::cin >> i >> j ) {
		std::stringstream ss;
		ss << ( i + j );
		std::cout << ss.str().size() << std::endl;
	}
}

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

int main()
{
    int a, b;
    while (cin >> a >> b)
    {
        string s = to_string(a + b);
        cout << s.length() << endl;
    }
    return 0;
}

C++: #include <cstdio>

using namespace std;

size_t num_digits(int n) {
    size_t k=1;
    while (n /= 10) ++k;

    return k;
}

int main() {
    while (true) {
        int a, b;
        if (scanf("%d %d", &a, &b) == EOF)
            break;

        printf("%zu\n", num_digits(a+b));
    }

    return 0;
}

C++: #include<iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<sstream>
#include<algorithm>
#include<map>
#include<complex>
using namespace std;


#define li			long long int
#define rep(i,to)	for(int i=0;i<((int)(to));i++)
#define repp(i,start,to)	for(int i=(int)(start);i<((int)(to));i++)
#define pb			push_back
#define sz(v)		((li)(v).size())
#define bgn(v)		((v).begin())
#define eend(v)		((v).end())
#define allof(v)	(v).begin(), (v).end()
#define dodp(v,n)		memset(v,(li)n,sizeof(v))
#define bit(n)		(1ll<<(li)(n))
#define mp(a,b)		make_pair(a,b)
#define rin	rep(i,n)
#define EPS 1e-10
#define ETOL 1e-8
#define MOD 1000000007
#define p2(a,b)		cout<<a<<"\t"<<b<<endl
#define p3(a,b,c)		cout<<a<<"\t"<<b<<"\t"<<c<<endl


int main(){
	li a,b;
	string s;
	while(cin>>a>>b){
		stringstream ss;
		ss<<(li)(a+b);
		ss>>s;
		//cout<<s<<endl;
		cout<<sz(s)<<endl;
	}
	
	return 0;
}

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

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

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

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

C++: 
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>

using namespace std;

#define rep(i,n) for(int i = 0; i < n; i++)
#define REP(i,j,n) for(int i = j; i < n; i++)


int main(){

	int a,b;
	int sum = 0;
	cin >> a >> b;

	sum = a + b;
	
	int x = 1;

	while(sum / 10 > 0){
		x++;
		sum = sum / 10;
	}

	cout << x << endl;

	return 0;
}

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

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

C++: #include <iostream>

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

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


string toString(long long n){
  stringstream ss;
  ss << n;
  return ss.str();
}
int main(){
  long long  a, b;
  while( cin >> a >> b ){
    cout << toString(a + b).size() << endl;
  }

}