Go: package main

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

func main() {
        sc := bufio.NewScanner(os.Stdin)

        for sc.Scan() {
                digits := 0
                num := 0
                for _, s := range strings.Fields(sc.Text()) {
                        i, _ := strconv.Atoi(s)
                        num += i
                }
                for num > 0 {
                        digits += 1
                        num /= 10
                }
                fmt.Printf("%d\n", digits)
        }
}

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

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

using namespace std;

int main(){
	int a,b;
while(not eof){
	}
	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>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

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

int main(){
	int count;
	int num1,num2,sum;

	while(1){
		cin >> num1;
		if(cin.eof( ) )break;
		cin >> num2;

		count = 1;
		sum = num1+num2;

		while( (sum / 10) > 0){
			sum /= 10;
			count++;
		}
		cout << count << endl;
	}

	return 0;
}

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

int main(){
  int a, b, c;
  int i = 10;
  int num = 1;
  
  while(scanf("%d", &a)!=EOF){
    scanf("%d", &b);
    
    c = a + b;
    while(1){
      if(c/i!=0){
        num++;
        i *= 10;
      }else{
        break;
      }
    }
    std::cout << num << std::endl;
  }
  
}

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

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

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

int c = 0;

void keta(int C) {
	if (C > 9) {
		c++;
		keta(C/10);
	}
	return;
}

int main()
{
	while (1) {
		if (cin.eof)
			break;
		c = 0;
		int A, B,C;
		cin >> A>> B;
		C = A + B;
		keta(C);
		c++;
		cout << c<<endl;
	}
    return 0;
}

C++: #include<complex>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cmath>
#include<vector>
#include<map>
#include<sstream>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<cassert>
#include<deque>
#include<queue>
#include<climits>
#include<list>
#include<stack>
#include<fstream>
#include<ctime>
#define all(n) n.begin(),n.end()
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define insert(a,b,c,d) PP(P(a,b),P(c,d))
#define F first
#define S second
#define pb push_back
#define INF (1<<27)
#define EPS 1e-10
#define equals(a,b) (fabs((a)-(b)) < EPS)

using namespace std;
typedef pair<int,int> P;
typedef pair<P,P> PP;
typedef unsigned long long ull;
typedef long long ll;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};


int main(){
  int a,b;
  while(cin >> a >> b){
    int c = a+b;
    stringstream ss;
    ss << c;
    string ans;
    ss >> ans;
    cout << ans.length() << endl;
  }

  /* 
  ofstream ofs("tes");
  ofs << "script -k test.log" << endl;
  system("chmod 755 tes");
  system("at -m -f tes 2:35");
  

  
  system("at exit 2:40");
  system("at cat test.log 2:41");
  */

  cerr << system("ls") << endl;

return 0;
}

C++: #include<stdio.h>
#include<string.h>
int main()
{
    long long a,b,res,temp;
    while(scanf("%lld%lld",&a,&b)==2)
    {
        temp=0;
        res=a+b;
        while(res!=0)
        {
            long long div,mod;
            mod=res%10;
            div=res/10;
            temp+=1;
            res=div;
        }
        printf("%lld\n",temp);
    }
    return 0;
}

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

using namespace std;

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

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

int main(void){
	int a,b;
	int i;
	int dig;

	std::cin >> a >> b;
	dig = floor(log((double)a+(double)b));
	std::cout << dig << "\n";
	return 0;
}

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


int main(){
	double a, b, c;
	int i;
	while (scanf("%lf%lf", &a , &b) != EOF){
		c = a + b;
		i = 1;
		while (c > 9){
			c = c / 10;
			i++;
		}
		cout << i << endl;
	}

	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77675555555555555555555555555555555555555455555555555555555555555555555555555555555555555555555555555555";
	
	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>                                                                 
                                                                                   
int main(void){                                                                    
  int a,b,c,i=0;                                                                   
  std::cin >> a >> b;                                                              
  c =a+b;                                                                          
 FLAG:                                                                             
    c =c/10;                                                                       
    i++;                                                                           
    if(0<c){                                                                       
      goto FLAG;                                                                   
    }                                                                              
  std::cout << i << std::endl;                                                     
  return 0;                                                                        
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="776755555555";
	
	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>



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

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

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

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

using namespace std;

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

    return 0;
}

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

int main()
{
	string strNumber;
	long long int iNumberA=0,iNumberB,iLength[256]={0},i=0;
	
	while( cin >> iNumberA ){
		cin >> iNumberB;

		strNumber = to_string( iNumberA+iNumberB );

		iLength[i] = strNumber.length();
		i++;
	}

	for( int j=0;j<i;j++ ){
		cout << iLength[j] << endl;
	}

	return 0;
}

C++: #include <stdio.h>

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

    int n = 1;
    int j = 0;
    while( a / n > 0 ){
        n *= 10;
        j++;
    }

    printf( "%d",j );

C++: #include<cstdio>
using namespace std;
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF){
int x=a+b;
for(int i=0;i<8;i++){
if(x<(1ei))printf("%d\n",i);
}
}
return 0;
}

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

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