Go: package main

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

func sliceAtoi(sa []string) ([]int, error) {
	si := make([]int, 0, len(sa))
	for _, a := range sa {
		i, err := strconv.Atoi(a)
		if err != nil {
			return si, err
		}
		si = append(si, i)
	}
	return si, nil
}

func getDigits(ary []int) (digits int) {
	sum := 0
	for _, v := range ary {
		sum += v
	}

	for sum != 0 {
		sum /= 10
		digits++
	}
	return
}

func getsTwoNumAsArray() (nums [][]int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}

		ary, _ := sliceAtoi(strings.Split(str, " "))
		nums = append(nums, ary)
	}

	return
}

func main() {
	ary := getsTwoNumAsArray()

	for _, v := range ary {
		fmt.Println(getDigits(v))
	}
}

C++: #define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 201
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];
			}
		}
		++cou;
	}
	for (i = 0; i < cou; ++i) {
		if (i != 0) printf("\n");
		printf("%d", ans[i]);
	}
}

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

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

int calcdigit(int c){
	int res=1;
	bool flg=true;
	while(flg){
		if(c/10==0){
			break;
		}
		++res;
		c=c/10;
	}
	return res;

}
int main() {
    clock_t cTimeStart, cTimeEnd;
    cTimeStart = clock();           // 現在時刻
    int a,b;
   	while(1){
   		cin>>a>>b;
	    cout<<calcdigit(a+b)<<endl;
   		if(cin.eof()){break;}
   	}


    cTimeEnd = clock();           // 現在時刻
//    cout<< "処理時間:" <<(cTimeEnd - cTimeStart)/1000 << "[ms]" << endl;

	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int a, b;
int main() {
	while(cin >> a >> b) {
		cout << (int)(log10(a + b)) + 1 << endl;
	}
}

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

C++: #include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main(void){
	int n , i , j , k ;
		cin >> j >> k ;
		int x = j+k;
		stringstream str;
		str << x ;
		string st = str.str();
		cout << st.size() << endl;
}

C++: while line = gets do
    p ->(l){(l[0]+l[1]).to_s.size}.call line.split(' ').map(&:to_i)
end

C++: #include <cstdio>

#define MAX 1000000
#define MIN 0
#define SIZE 200

int main() {
 int i,j;
 int a,b;
 int cnt = 0;
 int buf = 0;
 int sets[SIZE];

 while(scanf("%d %d",&a,&b) != EOF) {
  if((a < MIN) || (b < MIN) || (a > MAX) || (b > MAX)) {
   continue;
  }
 
  sets[cnt] = a + b;
  ++cnt;
 }

 for(i = 0;i <= cnt;++i) {
  while(j > MIN) {
   buf += ((sets[i] / j) * j);
   j /= 10;
  }
  
  sets[i] = buf;
  buf = 0;
 }

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

 return 0;
}

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

int main()
{
	ifstream fin(argc[1]);
	int a,b;
	int wa;
	while( !fin.eof() ) {
		int count = 0;
		fin >> a >> b;
		wa = a + b;
		while(0){
			if(wa / 10 == 0){
				cout << count << endl;
				break;
			}
			wa/=10;
			count++;
		}
	}
	return 0;
}

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

int main(void){
	double n;
	int a,b;
	while(scanf("%d %d",&a,&b)!=-1){
		a+=b;
		if(a!=0) n=log((double)a)/log(10.0);
		else n=0;
		printf("%d\n",(int)(n+1.0));
	}
	return 0;
}

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

int calc_sum_bit(int sum)
{
	int res = 0;
	if (sum == 0) return 1;
	while (sum != 0)
	{
		++res;
		sum/= 10;
	}
	return res;
}

int main()
{
	int a, b;

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

	return 0;
}

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

int main(){
	int a,b,keta[300] = {0},kcor = 0;
	while(cin >> a){
		cin >> b;
		if(a+b == 0){
			keta[kcor] = 1;
		}
		else{
			keta[kcor] = log10(double(a+b))+1;
		}
		kcor++;
	}
	for(int i = 0;i < kcor;i++){
		cout << keta[i] << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
 
using namespace std;
 
vector<int> d;
int input1, input2;
int sum;
stringstream ss;
 
int main(){
    
 while(cin >> input1 >> input2) {
     sum=input1+input2;
     ss << sum;
     cout << ss.str().size() << endl;
     ss.str("");
     ss.clear(stringstream::goodbit);
 }
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int a,b;
while(cin >> a >> b){
int x=1;
int ans=0;
while(x<=a+b){
x=x*10;
ans++;
}
printf("%d\n",ans);
}
return 0;
}

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

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

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

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

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

using namespace std;

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

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

int main(){
	int a,b,c;
	
	while(!cin.eof()){
		cin>>a;
		cin >> b;
		c = a+b;
		int count = 1;
if(c==0){
cout<<0;
continue;
}
		while(c > 9){
			count++;
			c /=10;
		}

		cout<<count;
		
	}
	return 0;
}

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

long long digit(long long sum);

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


long long digit(long long sum)
{
     if(sum<10)
      return 1;
     else
         return (1 + digit(sum/10));
}

C++: #include <stdio.h>
using namespace std;
int main() {
	int a, b;
	int c[9];
	c[0] = 0;
	c[1] = 10;
	for(int i = 2; i < 10; i++) {
		c[i] = c[i - 1] * 10;
	}
	while(scanf("%d %d", &a, &b) != EOF) {
		int i = 0;
		while(a + b >= c[i]) i++; 
		printf("%d\n", i);
	}
	return 0;
}

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

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

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

C++: #include<cstdio>

int main(){
int a,b;
 while(!scanf("%d%d",&a,&b)){
 printf("%d\n",a+b);
}
return 0;
}

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

#define rep(x,to) for(x=0;x<to;x++)
#define rep2(x,from,to) for(x=from;x<to;x++)

using namespace std;


int main(void){

int a, b, c;

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

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

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