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

int main(){
   int a[200],b[200],c[200],digit[200];
   int i,imax;
   digit = 1;
   i = 0;
   for(i=0;i<200;i++)digit[i] = 1;
   while(){
     cin >> a[i] >> b[i];
     c[i] = a[i] + b[i];
     i++;
     if(a[i]==NULL||b[i]==NULL)
       break;
   }

   imax = i;

   for(i=0;i<imax+1;i++){
     while(c[i]=>10){
       c[i] =/ 10;
       digit[i]++;
     }
   }

   for(i=0;i<imax+1;i++)cout << digit[i] << endl;

   return 0;
}

C++: #include<iostream>

using namespace std;

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

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



int main(void)
{
  //string stream s;
  ostringstream s;
  string os;
  int a,b,c;
  vector<int> array;
  int i=0;
  while(cin>>a>>b)
    {
      s <<(a+b);
	  os=s.str();
	  //cout<<os<<endl;
	  //cout<<os.size()<<endl;
      array.push_back(os.size());
	  if(array.size()==200)break;


    }

  while(i<array.size())
    {
      cout<<array[i]<<endl;
	  i++;
    }

}

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<<7<<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;
  cin >> a >> b;
  int sum = a + b;
  int count = 1;
  while(true) {
    sum /= 10;
    count++;
    if (sum < 10) break;
  }
  cout << count << endl;
  return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
	int a, b;
	cin >> a >> b;
	int c = log10((double)a) + 1;
	int d = log10((double)b) + 1;
	cout << c + d << endl;
	return(0);
}

C++: #include<cstdio>
#include<string>
int main(){
int i;
for(i=0;i<3;i++){
  int a, b;
scanf("%d%d", &a, &b);
a+=b;
std::string c=std::to_string(a);
printf("%d\n", c.length());
}
}

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("pwd") << endl;

return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); i++)
#define repd(i,a,b) for (int i = (a); i < (b); i++)
typedef long long ll;
int main(void)
{
    int a, b;
    while(cin >> a >> b)
    {
        cout << (int)log10((double)(a + b)) + 1 << endl;
    }
}

C++: #include<math.h>
#include<iostream>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
#define INF (1<<30)

using namespace std;


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

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

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

int main() {
    
    int l, m, n, i;
    
    while (1) {
        
        if(scanf("%d %d", &l, &m) == EOF) break;
        
        n = l + m;
        
        for (i = 1; n >= 9; i++) {
            n /= 10;
        }
        
        
        printf("%d\n", i);
        
    }
    return 0;
}

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

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

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

int main(){
	while(1){
		int a,b,sum;
		cin>>a;
		if(a == EOF){
			break;
		}
		cin>>b;
		
		sum = a+b;
		int degit=1;
		while(1){
			if(sum/10==0){
				break;
			}
			sum = sum/10;
			degit++;
		}
		cout<<degit<<endl;
	}
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <bitset>
#include <set>
#include <queue>

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

const float PI = 3.1415926;
static const int INFTY = (1<<30);

using namespace std;

typedef long long ll;
typedef long double ld;

int n, a, b, res;

int main() {
  rep(i,3) {
    cin >> a >> b;
    n = a+b;
    if(n /10 == 0) n++;
    res = 0;
    
    while(n>0) {
      n /= 10;
      res++;
    }
    cout << res << endl;
  }

  return 0;
}

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

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