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 <string>
#include <stdio.h>
#include <math.h>

using namespace std;

int main()
{
	int a[2];
	int a_keta,b_keta;

	while(1)
	{
		if(scanf("%d %d", &a[0],&a[1])==EOF)break;
		a_keta=(int)log10(a[0])+1;
		b_keta=(int)log10(a[1])+1;

		cout<<a_keta+b_keta<<"\n";				 
	}
	return 0;
}

C++: #include "bits/stdc++.h"
#include<unordered_map>
#include<unordered_set>
#pragma warning(disable:4996)
using namespace std;
using ld = long double;
template<class T>
using Table = vector<vector<T>>;
const ld eps=1e-9;

//// < "D:\D_Download\Visual Studio 2015\Projects\programing_contest_c++\Debug\a.txt"

int main() {
	string st;
	while (getline(cin,st)) {
		string a, b; 
		a = st.substr(0, st.find(" "));
		b = st.substr(st.find(" ") + 1);
		int aa = stoi(a); int bb = stoi(b);

		cout <<to_string(aa+bb).size() << endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int main()
{
	int a,b;
	while (a != EOF){
		cin >> a;
		cin >> b;
		cout << a + b << endl;
	}
}

C++: #include<functional>
#include<algorithm>
#include<iostream>
#include<utility>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<deque>
#include<map>
#define rep(i,n) for(int i=0;i<n;i++)
#define loop(i,x,n) for(int i=x;i<n;i++)
#define pf push_front
#define pb push_back
#define int long long
using namespace std;
const int INF=1000000007;
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};



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

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

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

C++: #include <cstdio>
using namespace std;
int a,b;
int cnt,ans;
int count(int s){
  if(s/10==0) return cnt;
  else {
    cnt++;
    count(s/10);
  }
}
int main(){
  while(scanf("%d %d",&a,&b)!=EOF){
    cnt=1;
    ans=count(a+b);
    printf("%d\n",ans);
  }
  return 0;
}

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

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

  return 0;
}

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

using namespace std;

int main(){

	int a, b;
	cin >> a >> b;
	cout << a + b << endl;

	system("pause");
	return 0;
}

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

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

C++: #include <iostream>
using namespace std;
int main(void)
{
    int a, b;
    while(cin >> a >> b)
    { 
        cout << a + b;
    }
}

C++: #include<stdio.h>

int main(void)
{
	int j[200],k[200];
	int i=0,l=0,kai[200]={0},x;
	do
	{
	   scanf("%d %d",&j[l],&k[l]);
	   if(j[l]<0||1000000<j[l]||k[l]<0||1000000<k[l])break;
	   l=l+1;
	
	}while(i !=1);
   for(i=0;i<l;i++)
   {
	   x=j[i]+k[i];

       
		 do{
			   x=x/10;
			   kai[i]=kai[i]+1;
	       }while(x!=0);
   }
	for(i=0;i<l;i++)
	{
		printf("%d\n",kai[i]);
    }
  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;

	while (cin>>a>>b){//??°????????????????????°?????????
		count = 0;
		cin >> a >> b;
		sum = a + b;

		while (sum != 0){


			sum /= 10;
			++count;

		}

		cout << count << endl;
	}

return 0;

}

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

int main(void) {
    int a, b;
    int sum;
    
    while(cin >> a >> b) {     //この条件文は重要！！
        sum = a + b;
        
        for(int i = 0; i < 7; ++i) {
            sum /= 10;
            if(sum == 0) {
                cout << i + 1 << endl;
                break;
            }
        }
    }
}

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

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

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

C++: #include <iostream>
#include <cmath>
using namespace std;
int main() {
	int a, b;
	while (cin >> a >> b)
		cout << floor(log10(a + b)) + 1 << endl;
}

C++: #include<string>
#include<vector>
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<sstream>
#include<functional>
#include<map>
#include<set>
#include<cmath>

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

#define EPS 1e-9

using namespace std;

int main(){

unsigned int a,b;
while(true){
cin >> a >> b;
if(cin.fail()) break;

int c=1;
double s=a+b;
while(1){
s/=10;
if(s<1) break;
c++;
}

cout << c << endl;

}

return 0;
}

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

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

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

int main(){
  int a,b,x,keta;
  while(cin>>a>>b){
    x=a+b;
    keta=log10(x);
    cout<<keta<<endl;
  }
}

C++: #include <iostream>

const int N = 200;
const int M = 10;

int main(void) {
  for (int i = 0; i < N; i++) {
    int a = 0;
    int b = 0;

    std::cin >> a;
    std::cin >> b;    

    int c = a + b;

    int count = 1;

    while (c >= M) {
      c /= M;
      count++;

      if (c < M) {
	break;
      }
    }

    std::cout << count << std::endl;
  }
   
  return 0;
}

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

using namespace std;

int main(){

  int a,b;

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

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

int main(void) {
    int a,b;
    while (1){
        cin >> a;
        if (cin.eof())
            break;
        cin >> b;
        cout << floor(log10(a+b)+1) << endl;
    }
    return 0;
}

C++: #include <iostream>
#include <sstream>
int main()
{
        for(uint8_t i=0;i<200;i++)
        {
                std::string str;
                getline(std::cin, str);
                std::stringstream s(str);
                uint16_t a,b;
                s>>a>>b;
                uint16_t sum=a+b;
                uint8_t count;
                for(count=0;sum>0;count++)
                        sum=sum/10;
                printf("%u\n",count);
        }

        return 0;
}

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

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

int main(){
    int a,b;
    while((cin >> a >> b),(a|b)!=EOF){
        int cnt = 0;
        int n = a+b;
        if(n!=0)for(cnt=0;n>0;cnt++)n/=10;
        else cnt = 1;
        cout<<cnt<<endl;
    }
    return 0;
}