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 <stdlib.h>
#include <stdio.h>
using namespace std;

int main()
{
	int a, b, sum;

	for( int i = 0; i < 3; i++ )
	{
		cin >> a >> b;
		sum = a + b;
		
		char str[10];
		int keta = sprintf( str, "%d", sum );

		cout << keta << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <math.h>
using namespace std;
int main(){
	int a,b;
	int sum=0;
	int count=0;
	vector<int> digits;
	for(int i=0;i<200;i++){
	 cin >> a >> b;
	 sum = a + b;
	 digits.push_back(log10(sum)+1);
	}
	for(int i=0; i<digits.size();++i){
		cout << digits[i] << endl;
	}
	vector<int>().swap(digits);
	return 0;

}

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

int keta(int i){
	if(i<10){
		return 1;
	}else{
		return 1+keta(i/10);
	}
}

int main(){
	int a,b;
	while(!cin.eof()){
	cin >> a >> b;
	cout << keta(a+b) << endl;
	}
}

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

#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)

using namespace std;

int main(void){
    
    unsigned number1,number2;
    int keta[205];
    int temp,tempcounter = 0;
    int count =0;
    char judge[20];
    
    while(cin >> number1 >> number2)
    {
        temp = number1+number2;
        while(temp != 0)
        {
            temp = temp / 10;
            if(temp)
                tempcounter++;
            else{
                keta[count] = tempcounter;
                tempcounter = 0;
            }
            
        }
        count++;
        if(count == 201)
            break;
    }
    REP(i, count)
    cout << keta[i]+1<< endl;
    return 0;
}

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

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

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

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

C++: #include <iostream>

int main(void){
while (!std::cin.eof()){
int a,b,c,i;
std::cin >> a >> b;
c=a+b;

while(!(c/=10))
i++;

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

C++: #include <stdio.h>

struct dataset{
	int a, b;
	int num_digits;
};

int main(){
	dataset data[200];
	int i, j, sum;

	i = 0;
	do{
		if(scanf("%d %d", &data[i].a, &data[i].b) == EOF) break;
		else i += 1;

		sum = data[i-1].a + data[i-1].b;
		data[i-1].num_digits = 0;
		do{
			data[i-1].num_digits += 1;
			sum /= 10;
		}while(sum != 0);
	}while(i < 200);

	for(j = 0; j < i; j++) printf("%d\n", data[j].num_digits);

	return 0;
}

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

C++: #include <iostream>
#include <string>
using namespace std;
int main()
{
	int a, b;
	while (1){
		cin >> a;
		if (a < 0){
			break;
		}
		cin >> b;
		auto sum = a + b;
		string str(to_string(sum));
		cout << str.size();
	}

}

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

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

int main(){
	string cunning="77675555555555555555555555555555555555555455555555555555555555555555555555555555555555555555555555555555";
	for(int i=0;i<104;i++) cout<<cunning[i]<<endl;
	return 0;
}

C++: #include <iostream>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <assert.h>

using namespace std;

#define set 200;
int main()
{

int a,b,sum;
ifstream fin;



 	fin.open("datasets.txt",ios::in);
	assert (!fin.fail( ));
    if (a>=0 || b<=1000000)
	{
     fin >> a >> b;
	while (!fin.eof( ))     
     {
        fin >> a >> b;
        cout << a << "\t" << b <<endl;
		cout << ceil(log10(a+b)) << endl;
	 }

	 fin.close( );
	 

	}
     return 0;


}

C++: #include <iostream>
using namespace std;
int main(){
  int a;
  int b;
  int k;//足した和
  int p;//引く数 

  for(;;){
    cin >> a >> b;
    k=a+b;
    for(int i=0;i<1000001;i++){
      p=1;
      for(int j=1;j<i;j++){
	p=p*10;
      }
    
      if(k<p){
	cout << i-1 << endl;
	i=99999999;
      }	 
    }
  }
}

C++: #include <iostream>

using namespace std;

int counts(char[] num) {
	int count = 0;
	for (int i = 0; i < num.length; i++) {
		if (num[i] != "0") count++;
	}
	return count;
}

int main() {
	for (int a, b; cin >> a >> b && a && b) {
	  char[] as = (char[])a;
	  char[] bs = (char[])b;
		cout << counts(as)+counts(bs) << endl;
	}
}

C++: ///
// File:  0002.cpp
// Author: ymiyamoto
//
// Created on Sat Nov  4 15:39:12 2017
//

#include <cstdint>
#include <iostream>

using namespace std;

int32_t main()
{
  while (!cin.eof()) {
    uint32_t a, b;
    cin >> a >> b;
    cout << to_string(a + b).size() << endl;
  }

  return 0;
}

C++: #include<cstdio>
char s[9];int main(){for(int a,b;~scanf("%d %d",a,b);printf("%d\n",sprintf(s,"%s",a+b)));}

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) {
		c = 0;
		int A, B,C;
		cin >> A>> B;
		C = A + B;
		keta(C);
		c++;
		cout << c<<endl;
	}
    return 0;
}

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

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

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

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

using namespace std;

int main(void)
{

	for(int i = 0; i < 3; i++){
		int a, b;
		scanf("%d %d", &a, &b);
		a+=b;
		int d = 1;
a /= 10;
		while(a > 0){
			a /= 10;
			d++;
		}
		cout << d << endl;
	}

	return 0;
}

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

using namespace std;

int digit(int num){
	if((num / 10) > 0){
		return (digit(num/10))+1;
	}
	else return 1;
}

int main(){
	int num1,num2,result=0;
	char buf[256];
	while(1){
		gets(buf);
		if(buf[0] == '\0')break;
		num1 = 0;
		num2 = 0;
		sprintf(buf,"%d %d",num1,num2);
		result += digit(num1);
		result += digit(num2);
		cout << result << endl;
	}
	return 0;
}

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

int main(){

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


int a[d],b[d];


d=0;
while(d<200){
   cin >> n1 >> n2;
   if(n1 >= 0 and n1 <= 1000000 and n2 >= 0 and n2 <= 1000000){
       a[i]=n1;
       b[i]=n2;
    }
    d++;
}



for (i = 0; i < d; i++) {
     c=0;
     sum=a[i]+b[i];
     while((sum/10)!=0){
         c++;
         sum=sum/10;
     }
   cout << c+1 << "\n";
}

    return 0;
}