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++: #include <bits/stdc++.h>
#define REP(i,n) for(int i = 0; i < n; i++)
using namespace std;

int main() {
  int num[2], ct1=0;
  queue<int> q;
  REP(j,3) {
    REP(i,2) scanf("%d", &num[i]);
    REP(i,2){
      while(num[i] != 0) {
        num[i] /= 10;
        ct1++;
      }
    }
    q.push(ct1);
    ct1 = 0;
  }
  REP(i,3) {
    printf("%d\n", q.front());
    q.pop();
  }

  return 0;
}

C++: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string[] numbers=input.Split(' ');
            int  answer = Convert.ToInt16(numbers[0]) +Convert.ToInt16( numbers[1]);
             string amswer1 = Convert.ToString(answer);
            Console.WriteLine((amswer1.Length));
        }
    }
}

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==105) break;
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

C++: #include<iostream>

using namespace std;

int main(void)
{
	int a,b;
	while(cin>>a>>b)
	{
		int c=a+b;
		int ans=1;
		while(1){
			c=c/10;
			if(c==0){break;}
			else{
				ans++;
			}
		}
		cout<<ans<<endl;
	}
}

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

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

#pragma warning(disable:4996)

int main()
{
	char Work[256];

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

	gets(Work);

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

			strcpy(Work2, &Work[nCnt]);

			Work[nCnt] = '\0';

			strcpy(Work3, Work);

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

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

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

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

	printf("%d\n", Keta);

	return 0;
}

C++: #include <cstdio>
#include <queue>
#include <vector>

using namespace std;


int main(){
	int a,b,c;
	char dm[256];
	while(scanf("%d %d",&a,&b) != EOF){
		c = sprintf(dm,"%d",a+b);
		printf("%d\n",c);
	}
	return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
	int num1, num2,sum;
	int n = 1;
	cin >> num1 >> num2;

	sum = num1 + num2;

	while (true)
	{
		int po = pow(10, n);
		if (!((sum % po) == sum))
			n++;
		else
			break;
	}

	cout << n << endl;

	cin >> n;
	return 0;
}

C++: #include<iostream>
using namespace std;
int main() {
	unsigned int a, b,i;
	while (1) {
		cin >> a ;
		if (a == EOF) break;
		cin >> b;
		a += b;
		for (i = 0; a / 10 != 0; i++) {
			a /= 10;
		}
		cout << i + 1 << endl;
	}
	return 0;
}

C++: //
//  main.cpp
//  kyougi
//
//  Created by 寺林 一旭 on 2018/08/27.
//  Copyright © 2018年 寺林 一旭. All rights reserved.
//

#include <iostream>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <map>
using namespace std;
int main() {
    
    string num;
    int inputValue;
    vector<int> list;
  
    while(getline(cin, num))
    {
        int a,b;
        sscanf(num.c_str(), "%d %d",&a,&b);
        int sum = a+b;
        int digit = 0;
        while( sum != 0)
        {
            sum = sum/10;
            digit++;
        }
        cout << digit << endl;
   //     cout << a-b <<endl;
    }
  
    
    return 0;
}

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

using namespace std;

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

  return 0;
}

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

using namespace std;

int main (int argc, char * const argv[]) {
    // insert code here...
    int a, b, c;
	
	while(cin >> a >> b ){
		c=1;
		a+=b;
		while(a/=10){
			c++;
		}
		cout<<c<<endl;
	}
	return 0;
}

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

int main(void)
{
  int a,b;
  while(scanf("%d %d", &a, &b) != EOF){
    char str[1024];
    sprintf(str, "%d", a+b);
    printf("%zd\n", strlen(str));
  }

  return 0;
}

C++: #include <iostream>
#include <math.h>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
int kaijo(int n){
	int ans = 1;
	if (n != 0){
		for (int i = 0; i < n; i++){
			ans *= (n - i);
		}
	}
	else{
		ans = 1;
	}
	return ans;
}

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

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

int main(){
	int a,b,c;
	string str;
	stringstream ss;
	while(cin>>a>>b){
		c=a+b;
		ss<<c;
		str=ss.str();
		c=str.length();
		cout<<c<<endl;
	}
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> P;
#define FOR(I,A,B) for(int I=int(A);I<int(B);++I)

int main(){
	int a,b; 
	auto f = [](int x,int y){
		int ans=0,k=x+y;
		while(k){
			ans++;
			k /= 10;
		}
		return ans;
	};
	while(scanf("%d %d",&a,&b)!=EOF){
		cout << f(a,b) << endl;
	}
}

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

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

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

int main(){
	int a,b;
	while(cin>>a>>b){
		int n=a+b;
		int ans=0;
		while(n>0){
			n/=10;
			ans++;
		}
		if(ans==0)ans++;
		cout<<ans<<endl;
	}
	return 0;
}

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

int main(){
const int INF=10000000;
int a,b,c,ans;
while(cin>>a>>b){
ans=1;
a+=b;
for(int i=0;i<INF;i++){
c=a%10;
a-=c;
if(a==0){break;}
if(a!=0){
ans++;
a/=10;}}
cout<<ans<<endl;}}

C++: #include <iostream>

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

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

int main(void){
	int a,b,dig;
	double sum,test;
	std::cin >> a >> b;
	sum = (double)a+(double)b;
	test = floor(log(sum)/log(10.0));
	std::cout << test+1 << "\n";
	return 0;
}

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

using namespace std;

int main(){
  string a,b;
  for(;;){
    cin >> a >> b;
    if(cin.eof()) break;

    int l=max(a.size(),b.size());
    vector<int> c(l,0),d(l,0);
    for(int i=a.size()-1,j=0; i>=0; i--,j++)
      c[j] = a[i]-'0';
    for(int i=b.size()-1,j=0; i>=0; i--,j++)
      d[j] = b[i]-'0';

    int flag=0;
    for(int i=0; i<l; i++){
      if(c[i]+d[i]+flag>9)
	flag=1;
      else
	flag=0;
    }
    
    cout << l+flag << endl;
  }
}