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<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("more in1.txt") << endl;

return 0;
}

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

C++: #include <iostream>
#include <cmath>
using namespace std;
 
int main()
{
    int a,b;
    while(cin >> a >> b) {
        a = log10(a+b) + 1;
        cout << a << '\n';
    }
    return 0;
}

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

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

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

int Digit(int x)
{
    int i = 10;
    int digit = 0;

    while(x != 0)
    {
        x = x / i;
        digit++;
    }

    return digit;
}

int main()
{
    int a,b;

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

    return 0;
}

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

int main(void){
	int a,b,c,d,t;
	while(cin>>a>>b){
		t=a+b;
		
		c=t/1;
		if(c>=1) d=1;
		
		c=t/10;
		if(c>=1) d=2;
		
		c=t/100;
		if(c>=1) d=3;
		
		c=t/1000;
		if(c>=1) d=4;
		
		c=t/10000;
		if(c>=1) d=5;
		
		c=t/100000;
		if(c>=1) d=6;
		
		c=t/1000000;
		if(c>=1) d=7;
		
		cout<<d<<endl;
	}
	return 0;
}

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


int main()
{
   int a,b;
   int keta = 1;
   int i;
  
   cin >> a >> b;
   while(!cin.eof())
     {
       a+=b;
       while(a>=10){
         a/=10;
         keta++;
       }
       cout << keta << endl;
       cin >> a >> b;
       keta = 1;
     }
  
   return 0;
}

C++: #include<cstdio>
int main(){
	int n,n1,n2,count,a;
	while(sacnf("%d%d",&n1,&n2)!=EOF){
		count=0;
		a=n1+n2;
		while(a!=0){
			a=a/10;
			count++;
		}
	printf("%d",count);
	}
	return 0;
}

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

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

using namespace std;

#define Vi vector<int>
#define FOR(i,s,e) for (int i=s; i<e; i++)
#define ITER(v) v.begin(), v.end()

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    int64_t a, b;
    int count;

    while (true) {
        cin >> a >> b;
        if (cin.eof()) { break; }
        int64_t sum = a + b;
        count = 1;
        while (sum >= 10) {
            sum /= 10;
            count++;
        }
        cout << count << endl;
    }

    return 0;
}

C++: #include <stdio.h>int main( void ){
   int l = 0;
while( l < 200 )    int a,b;    scanf( "%d %d",&a,&b );      a = a + b;       int n = 1;      int j = 0;      while( true ){            if( a / n >= 1 ) n *= 10;            else               break;          j++;          }      printf( "%d",j );
 l++;
 }return 0;}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
	int a,b,sum,i,k[100];
	while(scanf("%d%d",&a,&b)!=EOF)
	{
		sum=a+b;
		i=0;
		while(sum)
		{
			sum/=10;
			i++;
		}
		printf("%d\n\n",i);

	}
	return 0;
}

C++: #include<iostream>
int main(){
	int a,b;
	while(std::cin>>a>>b){
               a=log10(a+b)+1;
               std::cout<<a<<std::endl;
             }
	return 0;
}

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, c;
    while( cin >> a >> b ){
        c = log10( a + b ) + 1;
        cout << c << 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<1175) 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;
	while(cin >> a >> b) {
		int sum = a+b, count=1;
		while(sum>9) {
			sum =sum/10;
			count++;			
		}
		cout << count << endl;
	}
	return 0;
}

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

using namespace std;

#define all(c) (c).begin(), (c).end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};

int main() {
    int a, b;
    while (cin >> a >> b) {
        int s = a + b;
        int ans = log(1.0 * s) / log(10.0) + 1;
        cout << ans << endl;
    }

    return 0;
}

C++: #include <iostream>

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

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

using namespace std;

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

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

int main(){
	while(1){
	int a,b;
	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>
#include<stdio.h>
#include<string.h>
#include<math.h>
using namespace std;

#define MAX 256

int f(int z){
	if (z < 10)return 1;
	return 1 + f(z / 10);
}

int main(void){
	
	int ans[200];
	for (long i = 0; i < 200; i++){
		ans[i] = 0;
	}

	long a, b;
	long i = 0;

	while (scanf("%ld%ld", &a, &b) != EOF){
		ans[i] = f(a + b);
		i++;
	}

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

	return 0;
}

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