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;
unsigned int num(unsigned int x){
  int r=0;
  while(x!=0){
  x= x/10;
    r++;
  }
  return r;
}
int main(){
  unsigned int a[3],b[3];
  for(int i = 0 ;i<3;i++){
  cin>>a[i]>>b[i];
   a[i]+=b[i];
  }
  cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl;
  for(int i=0;i<3;i++){
   cout<<num(a[i])<<endl;
  }
  return 0;
}

C++: 5 7
1 99
1000 999

C++: 
#include<stdio.h>
int main()
{
	int a,b,sum;
	int m=200;
	loop:scanf("%d,%d",&a,&b);
	if((a>=0&&a<=1000000)&&(b>=0&&b<=1000000))
	{
		sum=a+b;
	}
	else
	{
		printf("error\n");
		goto loop;
	}
	if(sum>999999)
		printf("7");
	else if(sum>99999)
		printf("6");
	else if(sum>9999)
		printf("5");
	else if(sum>999)
		printf("4");
	else if(sum>99)
		printf("3");
	else if(sum>9)
		printf("2");
	else
		printf("1");
		printf("\n");
		m--;
		if(m!=0)
	goto loop;
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b,ans = 0;
    for (int i = 0; i < 3; i++){
        std::cin >>a>>b;
        ans = a + b;
        ans /= 10;
        if(ans  <= 9){
            ans = 2;
        }
        else if(ans <= 99){
            ans = 3;
        }
        else if(ans <= 999){
            ans = 4;
        }
        std::cout << ans << std::endl;
    }
    return 0;
}

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

int main() {
	int a, b;
	while (cin >> a >> b) {
		printf("%d\n", a + b);
	}
	

	//system("pause");
	return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <sstream>
using namespace std;
int main()
{

	int len[200];
	int max = 0;
	for(int num = 0 ;num <= 200 ; num++)
	{
		string str;
		string item;
		vector<string> list;
		getline(cin, str);
		if (str == "")
		{
			break;
		}

		stringstream ss(str);
		while (getline(ss, item, ' ') && !item.empty()) {
			list.push_back(item);
		}
		int sum = stoi(list[0].c_str()) + stoi(list[1].c_str());
		int count = 0;
		for (int i = 10; i <= 1000000; i = i * 10)
		{
			count++;
			if(sum < i)
			{
				len[num] = count;
				max++;
				break;
			}


		}
	}
	for (int num = 0; num < max; num++)
	{
		cout << len[num] << endl;

	}
	return 0;
}

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

using namespace std;
#define MAX_N 200
unsigned a[MAX_N],b[MAX_N];
unsigned s[MAX_N];
int Count[MAX_N];
int main(){
  for(int i = 0;i < 3;i++){
  Count[MAX_N] = 0;
  scanf("%u %u",&a[i],&b[i]);
  s[i] = a[i]+b[i];
  for(; s[i] !=0; s[i]/=10){
    Count[MAX_N]++;
  }
  }
  for(int i = 0;i < 3;i++){
  cout << Count<<endl;
  }
}

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

int main() {
	int a, b, x = 1, count = 0;
	while (cin >> a >> b, !cin.eof()){
		x = 1;
		count = 0;
		while (a + b>x) {
			x *= 10;
			count++;
		}
		cout << count << endl;
	}
}

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

int main()
{
  string result;
  int x,x1;
  cin >> x >> x1;
  x += x1;
  result = to_string(x);
  cout << result.length() << endl;
  return 0;
}

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

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

C++: #include <iostream>
using namespace std;
 
int main() {
    int a, b;
 
    while(cin >> a >> b) {
        a += b;
        int t = 1, cnt = 0;
        while(1) {
            if( a < t ) {
                break;
            } else {
                t *= 10;
                ++cnt;
            }
        }
        cout << cnt << endl;
    }
}

C++: #include <bits/stdc++.h>
#define INT(name) int name; scanf("%d",&name);
#define VINT(name,n) vector<int> name(n); for(int i = 0;i < n;i++) scanf("%d",&name[i]);

using namespace std;

int main(int argc, char const *argv[]){
	int a,b;
	vector<int> answer;
	while(cin >> a >> b){
		printf("%d\n",(int)log10(a+b) + 1);
	}
}

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

int main() {
  int a, b, c, count = 0;
  while( cin >> a >> b){
  c = a + b;
    b = 1;
    for(int i = 1; i <= 7; i++){
      b *= 10;
      if(c < b){
        cout << i << endl;
        break;
      }
    }
  }
}

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

using namespace std;

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

C++: #include <cstdio>

using namespace std;

int main()
{
  int a, b;
  int cnt = 1;

  scanf("%d%d", &a, &b);

  for (int i = a + b; i > 10; cnt++) i /= 10;

  printf("%d\n", cnt);
  
  return (0);
}

C++: #include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<vector>
#include<math.h>
#include<queue>
#include <algorithm>
#include<functional>
#include<cstdlib>
#include<cmath>

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define CI cin >>
#define CO cout <<
#define E << endl;

using namespace std;

typedef pair<int, int> P;
typedef pair<long, long> LP;
typedef pair<int, P> PP;
typedef pair<long, LP> LPP;



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

int A = 0, B = 0, K = 0, T = 0, W = 0, N = 0, H = 0;
int n = 0;
double L = 0;
double S = 0;
double ar = 0, br = 0, cr = 0;
int answer = 0;

string C;
string sA, strB;
vector<vector<char>> map;
vector<double> num;
vector<string> str;

int sum = 0;

vector<int> value;
vector<int> weight;

int dp[110][10010];

int data_[210][2] = {-2};

void input() {
	int i = 0;

	while (scanf("%d%d",data_[i][0],data_[i][1]) != EOF) {
		i++;
	}

	return;
}


int main(void) {
	input();
	int i = 0;
	int sum = 0;
	int numb = 0;

	while (true) {
		sum = data_[i][0] + data_[i][1];
		while (sum != 0) {
			numb++;
			sum /= 10;
		}
		if (data_[i + 1][0] == -2) {
			break;
		}
	}

	CO numb E

	return 0;
}

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

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

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

int main() {
    int a, b;
    while (true) {
        cin >> a >> b;
        int sum=a+b;
        int ans=0;
        while (sum>0) {
            sum/=10;
            ans++;
        }
        printf("%d\n",ans);
    }
    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<5000) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include<iostream>

using namespace std;

void solver() {
    int a,b;
    while(cin>>a>>b){
        cout<<to_string(a+b).length()<<endl;
    }
}

int main() {
    solver();
    return 0;
}