Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int

		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}

		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

C++: #include <iostream>
#include <cstdio> 
#include <cstdlib>
#include <cctype>
#include <cstring>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <stack>
#include <queue>
#include <algorithm>
#include <complex>
using namespace std;

typedef pair<int, int> pii;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;

#ifndef typeof
#define typeof __typeof__
#endif // typeof
 
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define tr(c, i) for(typeof((c).begin()) i = (c).begin(); i != (c).end(); i++)
#define rtr(c, i) for(typeof((c).rbegin()) i = (c).rbegin(); i != (c).rend(); i++)
#define repby(i, a, b, step) for(typeof(b) i = (a); i < (b); i += (step))
#define repab(i, a, b) repby(i, (a), (b), 1)
#define rep(i, n) repab(i, 0, (n))
#define pb push_back
#define sz(c) int((c).size())

int digit_num(int x)
{
  int res = 0;

  do {
    res++;
    x /= 10;
  } while (x);

  return res;
}


int main(int argc, char **argv)
{
  int a, b;

  while (cin >> a >> b) {
    cout << digit_num(a+b) << endl;
  }

  return 0;
}

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

int main() {

	int a, b, c;
	char e[100];

	while (cin >> a >> b) {

		c = sprintf(e, "%d", a+b);

		cout << c << endl;
	}

	return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int main() {
	int a, b, c,i, j;
	cin >> a >> b;
	for (i = 0; a < 10; i++) { c = a / 10; a = c; }
	for (j = 0; b < 10; j++) { c = b / 10; b = c; }
	c = a + b;
	cout << c << endl;
	return 0;
}

C++: main(a,b,i=1,x){for(scanf("%d%d",&a,&b),x=a+b;x=x/10;i++);printf("%d\n",i);}

C++: #include<iostream>
#include<cstdio>
#include<string>
int main(){
    int a, b;
    while(~scanf("%d%d", &a, &b)){
        std::string s = std::to_string(a+b);
        printf("%d\n", s.length());
    }
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>

#pragma warning(disable:4996)
#define MAX_DATA (201)
int main()
{
	char Work[MAX_DATA][256];

	int Num[2];
	int Divide;
	int nCnt2,nCnt = 0, Result, Keta = 1;

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
		gets(Work[nCnt2]);

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
	{
		for (nCnt = 0; Work[nCnt] != '\0'; nCnt++)
		{
			if (Work[nCnt2][nCnt] == ' ')
			{
				char Work2[256];
				char Work3[256];

				strcpy(Work2, &Work[nCnt2][nCnt]);

				Work[nCnt2][nCnt] = '\0';

				strcpy(Work3, Work[nCnt2]);

				Num[0] = atoi(Work3);
				Num[1] = atoi(Work2);
				break;
			}
		}

		Result = Num[0] + Num[1];

		Keta = 1;
		for (nCnt = 0; ;nCnt++)
		{
			Result = Result / 10.0f;

			if (Result > 0)
				Keta++;
			else
				break;
		}

		printf("%d\n", Keta);
	}
	
	return 0;
}

C++: #include<iostream>

using namespace std;

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

  return 0;
}

C++: #include <iostream>

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

while(c/=10)
i++;

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

C++: #include <iostream>
#include <string>
#include <cctype>
#include <cmath>
#include <stdio.h>
#include <algorithm>
#include <vector>
#include <map> // pair
#include <set>
#define MAXSIZE 200000
#define PI 3.141592653589
using namespace std;

template<typename T>
T add(T a,T b){
  return a+b;
}

namespace A
{
  int f(void){
    return 1;
  }
}

int main(){
  int a,b;
  while (std::cin >>a>>b) {
    int n=a+b;
    int digit=0;
    while (n>0) {
      n /=10;
      digit++;
    }
    std::cout << digit << '\n';
  }

}

C++: #include<iostream>
#include<string>
int main() {
	int data1,data2,i;
	char a[100];
	while (1) {
		std::cin >> data1 >> data2;
		if (data1==EOF) break;
		data1 += data2;
		std::string aa = std::to_string(data1);
		for (i = 0; aa[i] != '\0'; i++) {

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

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

int main(){
	int a,b;
	for( int i=0;i<200;i++ ){
		cin>>a>>b;
		if( a<0||b<0||1000000<a||1000000<a)
			break;
		cout<<(int(log10(a+b))+1)<<endl;
	}
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	while(~scanf("%d %d",&a,&b)!=EOF){
		int cnt=0;
		int c=a+b;
		while(c){
			c/=10;
			cnt++;
		}
		printf("%d\n",cnt);
	}
}

C++: #include <iostream>

using namespace std;

int main(){
	int ans[200],cnt[200]={0};
	int i = 0,a,b;

	while(cin >> a >> b){
		ans[i] = a + b;
		while(ans[i] != 0){
			ans[i] /= 10;
			cnt[i]++;
		}
		i++;
	}
	for(int j = 0;j < i;j++) cout << cnt[i] << endl;
	return 0;
}

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

using namespace std;


int main(){
    int a, b;
    char* str;
    str = (char*)malloc(sizeof(char) * 50);

    while(fgets(str, 50, stdin) != NULL) {
        sscanf(str, "%d%d", &a, &b);
        cout << (int)log10(a+b) + 1 << endl;
    }

    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a,b,c,i;
  int d=0;
  int n;
  1<=n<=200;
  for(int i=i;i<=n;i++){
    cin >> a >> b;
    c=a+b;
    while(c!=0){
      c=c/10;
      d=d+1;
    }
    cout << d << endl;
  }
}

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

int main(){
	int a,b;

	while(cin >> a >> b){
		int i;
		int sum = a+b;

		for(i=1;sum>9; i++){
			sum=sum/10;
		}

		cout << i << endl;
	}

	return 0;
}

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

C++: #include <iostream>

using namespace std;

int main()
{
	int a, b;

	while (cin >> a >> b) {
		int sum = a + b;
		int n;
#if 0
		for (n = 0; sum > 0; n++) {
			sum /= 10;
		}
		cout << n << endl;
#else
		if        (sum > 10000000) {	n = 8;	 
		} else if (sum > 1000000) {		n = 7;	
		} else if (sum > 100000) {		n = 6;	
		} else if (sum > 10000) {		n = 5;	
		} else if (sum > 1000) {		n = 4;	
		} else if (sum > 100) {			n = 3;	
		} else if (sum > 10) {			n = 2;	
		} else if (sum > 1) {			n = 1;	
		} else {						n = 0;
		}
		cout << n << endl;
	
#endif
	}
	return 0;
}

C++: #include <stdio.h>
#include <math.h>

int main() {
	int s=0;
	int a[200],b[200];
	while(scanf("%d %d", &a[s], &b[s]) != EOF) {
		s++;
	}

	int cnt;
	int keta[200];
	for(int i=0; i<200; i++) keta[i] = 0;

	for(int i=0; i<s; i++) {
		cnt = a[i] + b[i];
		while(cnt >= 10) {
			cnt/=10;
			keta[i] ++;
		}
		keta[i]++;
	}

	for(int i=0; i<s; i++) printf("%d\n", keta[i]);
	return 0;
}

C++: #include<stdio.h>
int main(){
	int x,y,i;
	for(i=0;i<200;i++){
	scanf("%d %d",&x,&y);
	if((x+y) < 10) printf("1\n");
	else if((x+y)<100) printf("2\n");
	else if((x+y)<1000) printf("3\n");
	else if((x+y)<10000) printf("4\n");
	else if((x+y)<100000) printf("5\n");
	else printf("6\n");
	}
	return 0;
}

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

int main() {
  int x, y;
  while( (x = cin.get()) != -1) {
    // cin >> x;
    if(x == -1) {
      break;
    }
    cin >> y;
    cout << x + y << endl;
  }
}

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

int digit(int i) {
  int cnt = 0;
  while (i > 0) {
    i /= 10;
    cnt++;
  }
  return cnt;
}

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