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>
using namespace std;

int getDigit(int in)
{
  if (in == 0) return 0;
  int ret = 1;

  while (in /= 10) ret++;

  return ret;
}

int main(void)
{
  int a, b;

  while (cin >> a) {
    cin >> b;

    cout << getDigit(a + b) << endl;
  }

  return 0;
}

C++: #include <iostream>
#include<vector>
#include<stdlib.h>
#include<algorithm>
#include<string>
using namespace std;



int main(void){

	int a, b,sum=0,count;

	for (;cin;){//??°????????????????????°?????????
		count = 0;
		cin >> a >> b;
		sum = a + b;
		if (sum == 0){ cout << 0 << endl; }
		else if (sum != 0){

			while (sum > 9){

				sum /= 10;
				count++;

			}
			//?????°???count?????°
			cout << count + 1 << endl;
		}
	}


	return 0;
}

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

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int x,y;
    for(;;){
        cin >> x >> y;
        if(cin.eof())   break;
        cout << to_string(x+y).length() << "\n";
    }
}
template < typename T > std::string to_string( const T& n ){
    std::ostringstream stm ;
    stm << n ;
    return stm.str() ;
}

C++: c[];main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d",sprintf(c,"%d",a+b)));}

C++: #include<stdio.h>
int main(void)
{
    int a,b,i,k;
	for(k=0;k<200;k++){
		scanf("%d %d",&a,&b);
		a=a+b;
		for(i=1;i<8;i++){
			if(a<10) break;
			a=a/10;
		}
		printf("%d\n",i);
	}
	return 0;
}

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

int main(){
  int a,b;
  int an[1000];
  int con[1000];
  int i=0,j,k;

  while(cin>>a>>b){
    an[i] =a + b;
    con[i] = 1;
    while(an[i]>=10){
      an[i] /= 10;
      con[i]++;
    }
    i++;
      }
  for(j=0;j<i;j++){
    cout<<con[j]<<endl;
  }

  return 0;

}

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

using namespace std;

int main()
{
    int a;
    int b;
    int c;

    cin >> a;
    cin >> b;

    c = ceil (log10(a+b));

    cout << c << " digit" <<endl;



    return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int a,b,s;
	while(scanf("%d %d",&a,&b)!=EOF){
	s=a+b;
	if(s<10){
		printf("1\n");
	}
	else if(s>9&&s<100){
		printf("2\n");
	}
	else if(s>99&&s<1000){
		printf("3\n");
	}
	else if(s>999&&s<10000){
		printf("4\n");
	}
	else if(s>9999&&s<100000){
		printf("5\n");
	}
	else if(s>99999&&s<1000000){
		printf("6\n");
	}
	else if(s>999999){
		printf("7\n");
	}
	}
	return 0;
}

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

int main() {
	int i=0, j=0;
	while( std::cin >> i >> j ) {
		std::stringstream ss;
		ss << ( i + j );
		std::cout << ss.str().size() << std::endl;
	}
}

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

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

C++: #include <cstdio>

using namespace std;

size_t num_digits(int n) {
    size_t k=1;
    while (n /= 10) ++k;

    return k;
}

int main() {
    while (true) {
        int a, b;
        if (scanf("%d %d", &a, &b) == EOF)
            break;

        printf("%zu\n", num_digits(a+b));
    }

    return 0;
}

C++: #include<iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<sstream>
#include<algorithm>
#include<map>
#include<complex>
using namespace std;


#define li			long long int
#define rep(i,to)	for(int i=0;i<((int)(to));i++)
#define repp(i,start,to)	for(int i=(int)(start);i<((int)(to));i++)
#define pb			push_back
#define sz(v)		((li)(v).size())
#define bgn(v)		((v).begin())
#define eend(v)		((v).end())
#define allof(v)	(v).begin(), (v).end()
#define dodp(v,n)		memset(v,(li)n,sizeof(v))
#define bit(n)		(1ll<<(li)(n))
#define mp(a,b)		make_pair(a,b)
#define rin	rep(i,n)
#define EPS 1e-10
#define ETOL 1e-8
#define MOD 1000000007
#define p2(a,b)		cout<<a<<"\t"<<b<<endl
#define p3(a,b,c)		cout<<a<<"\t"<<b<<"\t"<<c<<endl


int main(){
	li a,b;
	string s;
	while(cin>>a>>b){
		stringstream ss;
		ss<<(li)(a+b);
		ss>>s;
		//cout<<s<<endl;
		cout<<sz(s)<<endl;
	}
	
	return 0;
}

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

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

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

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

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

using namespace std;

#define rep(i,n) for(int i = 0; i < n; i++)
#define REP(i,j,n) for(int i = j; i < n; i++)


int main(){

	int a,b;
	int sum = 0;
	cin >> a >> b;

	sum = a + b;
	
	int x = 1;

	while(sum / 10 > 0){
		x++;
		sum = sum / 10;
	}

	cout << x << endl;

	return 0;
}

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

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

C++: #include <iostream>

int main()
{
	int a, b;
	while(std::cin>>a>>b)
	{
		int c = a+b;
		int d=0;
		if(c==0)
			d=1;
		else
		while(c>0)
			d++,
			c/=10;
		std::cout <<d <<std::endl;
	}
	return 0;
}

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


string toString(long long n){
  stringstream ss;
  ss << n;
  return ss.str();
}
int main(){
  long long  a, b;
  while( cin >> a >> b ){
    cout << toString(a + b).size() << endl;
  }

}

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

#define REP(i, x) for (int i = 0; i < (int)(x); i++)
#define REPS(i, x) for (int i = 1; i <= (int)(x); i++)

int main(int argc, char *argv[])
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int a, b;

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

    return 0;
}

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

long int a,b,ans,sum;
int main()
{

    while(scanf("%ld%ld",&a,&b)!=EOF)
    {
        ans=0;
        sum=a+b;
        while(1){

        if(sum<10)
        {
            ans=ans+1;
            break;
        }
        ans=ans+1;
        sum=sum/10;
        }
        printf("%ld\n",ans);
    }
}

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

using namespace std;

int main(void){

 int a,b;
 int ans;

 while(cin >> a >> b){
  ans=log10(a+b)+1;
  cout << ans << endl;
 }
}

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

int main() {
	int a, b;
	while (cin >> a >> b) {
		int n = a + b;
		int c = 1;
		while (n) {
			int x = n / 10;
			n /= 10;
			if (x) {
				c++;
			}
		}

		cout << c << endl;
	}
}

C++: int a;
  int b;
  int ans;
  while(cin >> a >> b){
    ans = a + b;
    if(ans>=0 && ans<=99){
      cout << "2" <<endl;
    }
    else if(ans>=100 && ans<=999){
      cout << "3" <<endl;
    }
    else if(ans>=1000 && ans<=1999){
      cout << "4" <<endl;
    }
  }
  return 0;
}