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 <functional>
#include <vector>
#include <algorithm>
#include <cmath>

int main(){
	int i;
	int j;
	while (std::cin >> i >> j){
		int t = i*j;
		int y;
		for ( y = 1; t / static_cast<int>(pow(10, y)) > 0; ++y){}
		std::cout << y << std::endl;
	}

	return 0;
}

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


int keta(){

int i,d,n1,n2,sum,c;

int a,b;

while(cin >> n1 >> n2){
    if(n1 == -1 or n2 == -1)  break;
   while(n1 < 0 or n1 > 1000000 or n2 < 0 or n2 > 1000000){
      cin >> n1 >> n2;
   }
   if(n1 >= 0 and n1 <= 1000000 and n2 >= 0 and n2 <= 1000000){
       a=n1;
       b=n2;
       c=0;
       sum=a+b;
       while((sum/10)!=0){
           c++;
           sum=sum/10;
        }
       cout << c+1 << "\n";
   }
}
return 0;
}

int main(){

keta();


    return 0;
}

C++: /*
C++ ???????????????????????????????????¬??????
??????AOJ-ITP1??????????????????
*/
#define _USE_MATH_DEFINES

#include <iostream> // ?¨??????\??????
#include <fstream>  // ??????????????\??????
#include <string>   // ???????????¢???
#include <vector>   // ???????????????
#include <cmath>    // ??°??????
#include <iomanip>  // stream???????????¢???
#include <algorithm>// max??¢??°??????

using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;        // ????´???°????????????????????????
using std::fixed;         // ???????????????????¨???????????????????????????????
using std::setprecision;  // ?????°????°???°?????\???????????°????????????????????¨????????\???

int main() {
	int a, b, c;
	int count;
	while (true)
	{
		// ??\???
		cin >> a >> b;
		c = a + b;
		count = 0;

		// ?????°??????
		do
		{
			c = c / 10;
			count++;
			cout << c << endl;
		} while (c > 0);
		cout << count << endl;
	}

	return 0;
}

C++: #include <iostream>

int main(){
	int a, b;
	
	while(std::cin >> a >> b){
		int n = a + b;
		int count = 1;
		//10??§?????£????????°????±???????
		while(n / 10 != 0){
			++count;
			n /= 10;
		}
		
		std::cout << count << std::endl;
	}
	return 0;
}

C++: #include<iostream>
#include<stdio.h>
using namespace std;
int main(){

  int a,b;
  while(scanf("%d %d",&a,&b) != EOF){
  int i = 0;
  a = a + b;
  while(a > 0){
    a = a / 10;
    i++;
      }

  cout << i << endl;

  }
}

C++: #include <iostream>
using namespace std;
int func(int ab){
  if(ab<10)ab=1;
  else{
    int tmp=1;
    while(ab>=10){
      ab=ab/10;
      tmp+=1;
    }
    ab=tmp;
  }
  cout<<ab<<endl;
  int a,b;
  a=-12;
  b=-13;
  cin>>a>>b;
  if(a!=-12&&b!=-13)func(a+b);
}
int main(){
  int a,b;
  cin>>a>>b;
  func(a+b);
}

C++: #include <iostream>

int main(int argc, const char * argv[])
{
    int a, b, ab = 0, ans = 0;
    
    while(scanf("%d %d", &a, &b) != EOF){
        if (a < 0 || 1000000 < a) {
            while (a < 0 || 1000000 < a) {
                scanf("%d %d", &a, &b);
            }
        }
        if (b < 0 || 1000000 < b) {
            while (b < 0 || 1000000 < b) {
            scanf("%d %d", &a, &b);
            }
        }
        ab = a + b;
        while (ab) {
            ans++;
            ab /= 10;
        }
        printf("%d\n", ans);
    }
    return 0;
}

C++: #include<bits/stdc++.h>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cctype>

#include<cmath>
#include<iostream>
#include<fstream>

#include<string>
#include<vector>
#include<queue>
#include<map>
#include<algorithm>
#include<set>
#include<sstream>
#include<stack>

using namespace std;

int main()
{
    long long int n,i,j,a,b,aa,bb,digit,digit1,ck=0,dk=0;
    while(scanf("%lld %lld", &a, &b)!=EOF){
     aa = a;
    bb = b;
    while(a){
        digit = a%10;
        a/=10;
        if(digit==0) continue;
        else{
            if(aa%(digit)==0) ck++;
        }
    }

    while(b){
        digit1 = b%10;
        b/=10;
        if(digit1==0) continue;
        else{
            if(bb%(digit1)==0) dk++;
        }
    }
    cout<<ck+dk<<endl;
    ck=0,dk=0;
    }
}

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

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

C++: #include <stdio.h> 

int main(){
    
    int a,b,n;
        
    scanf("%d",&a);
    scanf("%d",&b);
    
    n = a + b;
    
    if(n < 10){
        printf("1\n");
    }else if(n > 100){
        printf("2\n");
    }else if(n > 1000){
        printf("3\n");
    }else if(n > 10000){
        printf("4\n");
    }else if(n > 100000){
        printf("5\n");
    }else if(n > 1000000){
        printf("6\n");
    }
    
    return 0;
    
}

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

int main(){
	int a[200],b[200],sum[200],dight[200],line;
	for(int num=0;num<200;num++){
	dight[num]=0;a[num]=0;b[num]=0;
	}
	int fl=0;
	for(int num=0;num<200;num++){
	 // cout << "numA and numB"<< endl;
	 fl=0;
	 if(cin!=NULL){
	 cin >> a[num];
	 cin >> b[num];
	 }
	 else {
	 line=num-1;
	 break;
	 }
	 sum[num]=a[num]+b[num];
	 for(;fl!=1;){
	 if(sum[num]>=1){
	 sum[num]=sum[num]/10;
	 dight[num]++;
	 }
	 else fl=1;
    }
    }
    for(int num=0;num<line;num++){
    cout << dight[num]<< endl;
    }
  return 0;
}

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

C++: #include<iostream>
#include<string.h>
#include<stdio.h>
using namespace std;
int main(){
int a,b,c;
char ans[100];
	while(cin>>a>>b){
		sprintf(ans,"%d",a+b);
	c=strlen(ans);
	cout<<c<<endl;
	}
return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a[3]={0},b[3]={0},sum[3]={0},keta[3]={0};
	int x;

	for(x=0;x<3;x++)
	{
		scanf("%d %d",&a[x],&b[x]);
		sum[x]=a[x]+b[x];
		printf("%d\n",sum[x]);
	}

	for(x=0;x<3;x++)
	{
		while(sum[x]!=0)
		{
			sum[x]=sum[x]/10;
			keta[x]++;
		}
		printf("%d\n",keta[x]);
	}

	return 0;
}

C++: #include<stdio.h>

int main( ) {
	int input_a;
	int input_b;
	int answer_math;
	int count = 0;

	scanf("%d""%d",&input_a ,&input_b);

	answer_math = input_a + input_b;

	while( 1 ) {
		answer_math = answer_math / 10;
		count++;
		if( answer_math <= 0 ) {
			break;
		}
	}
	printf("%d",count);

	return 0;
}

C++: #include<iostream>
#include<map>
#include<vector>
#include<list>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<numeric>
#include<climits>
#include<ctime>
#include<cstring>
#include<sstream>
#define REP(i,p,n) for(int i=p;i<(int)(n);i++)
#define rep(i,n) REP(i,0,n)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))
#define all(c) (c).begin(), (c).end()

using namespace std;
template<class T> inline void chmax(T& a, T b) { if(b > a) a = b; }
template<class T> inline void chmin(T& a, T b) { if(b < a) a = b; }

int main() 
{
	int a,b;
	int ans;
	while(cin >> a >> b) {
		ans = a + b;
		string a_str = to_string(ans);
		cout << a_str.size() << endl;
	}

	return 0;
}

C++: #include<stdio.h>
#include<vector>
#include<algorithm>
#include<cmath>
#include<string>
#include<iostream>

int main(){
    int i, j;
    int a,b,c;
    std::vector<int> avec, bvec;
    for (i = 0; i <= 200; i++){
        scanf("%d %d", &a, &b);
        c = a + b;

        std::string str = std::to_string(c);
        std::cout << str.length() << "\n";
    }

    return 0;
}