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++: #define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, i, sum, cou = 0;
	int ans[MAX] = { 0 };
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		printf("%d\n", ans[cou]);

		++cou;
	}
	for (i = 0; i < cou; ++i) {
		printf("%d\n", ans[i]);
	}
}

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

using namespace std;

int main()
{
	unsigned int a, b;
	string sa,sb;
	while (cin)
	{
		cin >> a >> b;
		
		stringstream ss;
		ss < (a + b);
		cout << ss.str().size() << endl;
	}
	return 0;
}

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

int main() {
  int a,b;
  while(scanf("%d %d", &a, &b) != EOF) {
    std::stringstream ss;
    ss << a+b;
    std::cout << ss.str().length() << std::endl;
  }
}

C++: #include <iostream>
#include <vector>
#include <algorithm>

using namespace std;


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

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

int main(){

  int a, b;
  int temp;
  int i=0;
  int j=0;
  int n[200];

  while( cin >> a, b ) {
    n[i]=0;
    temp = a+b;
    while(temp!=0){
      n[i]++;
      temp = temp/10;
    }
    if(i == 199){
      break;
    }
    i++;
  }

  while(cout << n[j]){
    j++;
  }

  return 0;
}

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

int main(){
	int a, b, n, c = 1;
	cin >> a >> b;
	n = a + b;
	while( (n = n / 10) != 0 )
		++c;

	cout << c << "\n";
	
	return 0;
}

C++: #include<stdio.h>

int main(void)
{
	int high[10]={1819,2003,876,2840,1723,1673,3776,2848,1592,922};
	int x,max,time;


	for(time=1;time<=3;time)
	{
		max=0;

		for(x=0;x<10;x++)
		{
			if(max<high[x])
			{
				max=high[x];
			}
		}
		for(x=0;x<10;x++)
		{
			if(max==high[x])
			{
				printf("%d\n",high[x]);
				high[x]=0;
				time++;
			}
		}
	}

	return 0;
}

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

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    
    ll a, b;
    while(cin >> a >> b)
    {
        ll ans, cnt = 0;
        ans = a+b;
        while(ans)
        {
            ans /= 10;
            cnt++;
        }
        cout << cnt << "\n";
    }
    return 0 ;
}

C++: #include <bits/stdc++.h>
#define int long long
using namespace std;
const int INF = 1e9 + 7, MOD = 1e9 + 7;
const long long LINF = 1e18;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};

int DigitCount(int x) {
	string s = to_string(x);
	return s.size();
}

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

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

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

C++: #include <iostream>
#include <algorithm>
#include <vector>

static const int DataMax = 200;	// Max value of elements

typedef struct _data_list
{
    int count;	// Number of elements
    std::vector<int> vec[DataMax];
} data_list_t;

static void InputData(data_list_t& data)
{
    int v1, v2;

    if (0x00 == &data) {
        std::cerr << "data is null" << std::endl;
        exit (1);
    }

    while (std::cin >> v1 >> v2) {
        data.vec[data.count].push_back(v1);
        data.vec[data.count].push_back(v2);
        data.count++;
    }
}

static int getDigitSumOfValues(data_list_t& data, int index)
{
    int digit = 0;
    int sum = 0;

    if (0x00 == &data) {
        std::cerr << "data is null" << std::endl;
        exit (1);
    }

    for (int i = 0; i < data.vec[index].size(); i++) {
            sum += data.vec[index].at(i);
    }

    while (sum >= 1) {
        digit++;
        sum /= 10;
    }

    return digit;
}

int main()
{
    data_list_t data = {0};

    InputData(data);
    for (int i = 0; i < data.count; i++) {
        std::cout << getDigitSumOfValues(data, i) << std::endl;
    }

    return 0;
}

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

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

C++: //#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
//#include <cstdio>
//#include <cstdlib>
//#include <cmath>
#include <iostream>
#include <algorithm>
//#include <cstring>
#include <vector>
#include <string>
#include <map>
#include <list>
#include <queue>
#include <set>
using namespace std;

int main(void){

	int a, b;
	
	while(cin >> a >> b){
	string num = std::to_string(a+b);
	
	cout << num.size() << endl;
	}

	return 0;
}

/*
for(i=0;i<N;i++){
	cin >> X[i];
}


for(i=0;i<N;i++){
	for(j=0;j<N;j++){
		cin >> X[i][j];
	}
}
*/

C++: #include<cstdio>
#include <vector>
#include <algorithm>
#include <functional>
using namespace std;

int main(){
	int nums[2];
	for(int i=0; i<2; ++i){
		scanf("%d", &nums[i]);
	}

	printf("%d\n", nums[0]+nums[1]);

	return 0;
}

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

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

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

using namespace std;
int i,a,b;
string s;

int main() {
	while(cin>>a>>b){
		a = a+b;
		s = to_string(a);
		cout << s.size() << endl;
	}
	return 0;
}

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

using namespace std;

int main(void)
{
	int a, b;
	while (scanf("%d %d", &a, &b) != EOF){
		int c = a + b, ret = 0;
		while (c > 0){
			ret++;
			c /= 10;
		}
		cout << ret << endl;
	}

	return 0;
}

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

int main() {
	int a, b;
	int D[200] = { 0 };
	for (int i = 0; i < 5; ++i) {
		int digits = 1;
		cin >> a >> b;
		int n = a + b;
		n /= 10;
		while (n) {
			++digits;
			n /= 10;
		}
		D[i] = digits;
	}

	for (int i = 0; i < 200; ++i) {
		if (D[i] == 0) {
		}
		else {
			cout << D[i] << endl;
 		}
	}
}