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 <iostream>
#include <algorithm>
#include <cstdlib>
using namespace std;

int main() {
	int a = 0;
	int b = 0;

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

	return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int dec1,dec2,sum,keta=0;
	scanf("%d %d",&dec1,&dec2);
	sum=dec1+dec2;
	while(sum>10){
		sum=sum/10;
		keta++;
	}
	printf("%d\n",keta+1);
	return 0;
}

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

int main()
{
    int in1, in2;
    int a[200], b[200];
    int count = 0;
    while(cin >> in1 >> in2) {
        a[count] = in1;
        b[count] = in2;
        count++;
    }

    for(int i = 0; i < count; i++) cout << (int)log10(a[i]+b[i])+1 << endl;
    
    return 0;
}

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

int main(int argc, char *argv[]){
	//std::ifstream datafile(argv[1]); //input datafile
	std::string str;
	int num1, num2; //a, b
	int sum; //a + b
	int digit = 0; //digit

	// if(datafile.fail()){
	// 	std::cout << "error : can't open this file." << std::endl;
	// 	exit(1);
	// }

	while(std::getline(std::cin, str)){
		sscanf(str.c_str(), "%d%d", &num1, &num2);

		if(num1 < 0 || num1 > 1000000 || num2 < 0 || num2 > 1000000){
			std::cout << "error : out of constraints" << std::endl;
			exit(1);
		}

		sum = num1 + num2;

		if(sum == 0){ //when sum is 0, its digit is 1
			std::cout << 1 << std::endl;
		}else{ //when sum is not 0
			while(sum != 0){
				digit++;
				sum = sum / 10;
			}
			std::cout << digit << std::endl;
			digit = 0;
		}
	}

	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){
	int num = a + b;
	int result = 0;
	
	if(num == 0) result++;
	while(num != 0){
		result++;
		num /= 10;
	}
	
	cout << result << 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++: int digits(int x)
{
  if (x < 10)
    return 1;
  else
    return 1 + digits(x / 10);
}

int main(int argc, char **argv)
{
  int a, b;
  while (cin >> a >> b) {
    cout << digits(a+b) << endl;
  }
  return 0;
}

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

int main(){
	cout << "Hello, world!" << endl;
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <string>
#include <sstream>
 
using namespace std;
 
int main(){
    int a, b;
    stringstream s;
    while(cin >> a >> b){
    s << a + b;
    cout << s.str().size() << endl;
    }
    return 0;
}

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

int main()
{
	int a,b,c;
	cin >>a >>b;
	c = a+b;
	int ret = 1;
	for(int i=1;;i++){
		if( c/pow(10,i) !=0 ){
			ret++;
		}else{
			break;
		}
	}
	cout <<ret <<endl;
    
	return 0;
}

C++: #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"
using namespace std;

int main(void)
{
    long num1, num2;

    for (int i = 0; i < 200; i++) {
        cin >> num1 >> num2;

        num1 += num2;

        num2 = 0;
        while(num1 > 0) {
            num2++;
            num1 /= 10;
        } 

        cout << num2 << endl;
    }
    
    return 0;
}

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

C++: #include <bits/stdc++.h>

using namespace std;

int main(){
	int a,b;
while(not eof){
	}
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

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

int main(){
	int count;
	int num1,num2,sum;

	while(1){
		cin >> num1;
		if(cin.eof( ) )break;
		cin >> num2;

		count = 1;
		sum = num1+num2;

		while( (sum / 10) > 0){
			sum /= 10;
			count++;
		}
		cout << count << endl;
	}

	return 0;
}

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

int main(){
  int a, b, c;
  int i = 10;
  int num = 1;
  
  while(scanf("%d", &a)!=EOF){
    scanf("%d", &b);
    
    c = a + b;
    while(1){
      if(c/i!=0){
        num++;
        i *= 10;
      }else{
        break;
      }
    }
    std::cout << num << std::endl;
  }
  
}

C++: #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>
using namespace std;

int c = 0;

void keta(int C) {
	if (C > 9) {
		c++;
		keta(C/10);
	}
	return;
}

int main()
{
	while (1) {
		if (cin.eof)
			break;
		c = 0;
		int A, B,C;
		cin >> A>> B;
		C = A + B;
		keta(C);
		c++;
		cout << c<<endl;
	}
    return 0;
}

C++: #include<complex>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cmath>
#include<vector>
#include<map>
#include<sstream>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<cassert>
#include<deque>
#include<queue>
#include<climits>
#include<list>
#include<stack>
#include<fstream>
#include<ctime>
#define all(n) n.begin(),n.end()
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define insert(a,b,c,d) PP(P(a,b),P(c,d))
#define F first
#define S second
#define pb push_back
#define INF (1<<27)
#define EPS 1e-10
#define equals(a,b) (fabs((a)-(b)) < EPS)

using namespace std;
typedef pair<int,int> P;
typedef pair<P,P> PP;
typedef unsigned long long ull;
typedef long long ll;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};


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

  /* 
  ofstream ofs("tes");
  ofs << "script -k test.log" << endl;
  system("chmod 755 tes");
  system("at -m -f tes 2:35");
  

  
  system("at exit 2:40");
  system("at cat test.log 2:41");
  */

  cerr << system("ls") << endl;

return 0;
}

C++: #include<stdio.h>
#include<string.h>
int main()
{
    long long a,b,res,temp;
    while(scanf("%lld%lld",&a,&b)==2)
    {
        temp=0;
        res=a+b;
        while(res!=0)
        {
            long long div,mod;
            mod=res%10;
            div=res/10;
            temp+=1;
            res=div;
        }
        printf("%lld\n",temp);
    }
    return 0;
}

C++: #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 <stdio.h>
#include <math.h>
#include <iostream>
using namespace std;

int main(void){
	int a,b;
	int i;
	int dig;

	std::cin >> a >> b;
	dig = floor(log((double)a+(double)b));
	std::cout << dig << "\n";
	return 0;
}