Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	"unicode/utf8"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var strs []string
	var a, b, sum int64
	var digits int
	for scanner.Scan() {
		strs = strings.Split(scanner.Text(), " ")
		a, _ = strconv.ParseInt(strs[0], 10, 64)
		b, _ = strconv.ParseInt(strs[1], 10, 64)

		sum = a + b
		// goでlen(string)はbyte数が返る
		digits = utf8.RuneCountInString(strconv.FormatInt(sum, 10))

		fmt.Printf("%d\n", digits)
	}
}

C++: //泥臭いなあ
#include <iostream>
#include <cstdio>

int main()
{
        using namespace std;
        long int a,b;
        unsigned long int div;

        while(1){

        cin >> a;
        if(a == EOF)break;
        cin >> b;
        div = (a+b)/10;

        if(div == 0)cout <<1<<"\n";
        else if(1 <= div && div <= 9)cout <<2<<"\n";
        else if(10 <= div && div <= 99)cout <<3<<"\n";
        else if(100 <= div && div <= 999)cout <<4<<"\n";
        else if(1000 <= div && div <= 9999)cout <<5<<"\n";
        else if(10000 <= div && div <= 99999)cout <<6<<"\n";
        else if(100000 <= div && div <= 200000)cout <<7<<"\n";
        }

        return 0;
}

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

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

C++: #include<stdio.h>

int main(){

	int i,j;
	int data[6];

	for(i=0;i<6;i++){
		scanf("%d",&data[i]);
	}
	data[0]=data[0]+data[1];
	data[1]=data[2]+data[3];
	data[2]=data[4]+data[5];

	for(i=0;i<3;i++){
		for(j=0;j<10;j++){
			if(data[i]<10){
				data[i+3]=j;
			}else{
				data[i]=(int)data[i]/10;
			}
		}


	getchar();

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

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

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


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

	return 0;
}

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

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

C++: #include<iostream>
#include<string>
int main(void){
    int a, b;
    while(std::cin >> a >> b){
        int s = a + b;
        std::cout << std::to_string(s).length() << std::endl;
    }
    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		int cnt=0;
		int c=a+b;
		while(c){
			c/=10;
			cnt++;
		}
		printf("%d\n",cnt);
	}
	return 0;
}

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

int main() {
  int x, y, z, digit;

  while(cin >> x) {
    cin >> y;
    digit = 1;
    z = x + y;
    while(z >= 10) {
      digit++;
      z /= 10;}
    cout << digit << endl;
  }
}

C++: #include <stdio.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

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

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

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

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

using namespace std;

int digit(int);

int main(){
	int a,b;
	vector<pair<int,int> > out;
	while (cin>>a>>b){
		pair<int,int> p=make_pair(a,b);
		out.push_back(p);
	}
	for (int i=0;i<out.size();i++){
		cout<<digit(out[i].first-out[i].second)<<endl;
	}
	return 0;
}

int digit(int x){
	//x????????°?????????
	int i;
	for (i=0;x>0;i++){
		x/=10;
	}
	return i;
}

C++: #include<algorithm>
#include<functional>
#include<cmath>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<string>
#include<sstream>
#include<iostream>
#include<iomanip>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<map>
#include<set>
#include<bitset>

#define all(c) (c).begin(), (c).end()
#define rep(i,n) for(int i=0;i<(n);i++)
#define pb(e) push_back(e)
#define mp(a, b) make_pair(a, b)
#define fr first
#define sc second

typedef unsigned long long ull;
typedef long long ll;

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

using namespace std;

typedef pair<int ,int > P;

int a,b;

void solve()
{
	int n=a+b;

	ostringstream os;

	os<<n;

	cout<<os.str().size()<<endl;

	return ;
}

int main()
{
	while(cin>>a>>b)
	{
		solve();
	}


	return 0;
}

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

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

C++: #include <iostream>

const int N = 200;
const int M = 10;

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

  while (!std::cin.eof()) {
    std::cin >> a;
    std::cin >> b;

    int c = a + b;

    int count = 1;

    while (c >= M) {
      c /= M;
      count++;

      if (c < M) {
	break;
      }
    }

    std::cout << count << std::endl;
  }
   
  return 0;
}

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

int main(int argc, char** argv)
{
  int a, b;

  while (1) {
    if (fscanf(stdin, "%d %d", &a, &b) != 2)
      break;

    fprintf(stdout, "%d\n", int(log10(a + b)) + 1);
  }
}

C++: #include <iostream>


using namespace std;

int main(){
	int a;
	int b;
	

	for (int i = 0; i < 200; i++){
		int d=0;
		cin >> a >> b;
		int  c = a + b;
		for ( d = 1; c >= 10; d++)
		{
			c = c / 10;
		}
		cout << d << endl;
	}

	return 0;
}

C++: #define _USE_MATH_DEFINES
#include <iostream>
#include <vector>
#include <math.h>
#include <string>
#include <string.h>
#include <stack>
#include <algorithm>
#include <stdio.h>
#include <functional>
using namespace std;

//??°?????????????????°

void function()
{
    //??¢??°
}
 
int main(){
	int a, b;
	cin >> a >> b;
	int sum = a + b;
	int cnt = 1;
	while(true){
		sum /= 10;
		if(sum == 0){
			break;
		}
		cnt++;
	}
	cout << cnt << endl;
    return 0;
}

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

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

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

  return 0;
}

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

int main()
{
	int value,value_2;
	
	while(cin >> value >> value_2)
	{
		int count = 1;
		int sum = value + value_2;
		while(sum / 10 != 0)
		{
			sum /= 10;
			count++;
		}

		cout << count << endl;
		count == 0;
	}
	return 0;
}

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

using namespace std;

int a,b;
int s;
int Count;
int main(){
  Count = 0;
  scanf("%d %d",&a,&b);
  s = a+b;
  for(; s != 0; s/=10){
    Count++;
  }
  printf("%d",Count);
  return 0;
}

C++: #define scanf_s scanf
#include <string>
#include <stdio.h>
#include <math.h>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	int ans[MAX] = { 0 };
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		++cou;
	}
	for (int i = 0; i < cou; ++i) {
		if (i != 0) printf("\n");
		printf("%d", ans[i]);
	}
}

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

int main() {

	int a, b, c,d;
	char e[100];

		cin >> a >> b;

		c=a+b;

		d = sprintf(e,"%d", c);

	cout << d << endl;

	return 0;
}