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 main()
{
	double a,b;
	while(std::cin>>a>>b)
	{
		int digit=(int)std::log10(a+b);
		std::cout << digit+1 << std::endl;
	}
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  while(cin>>a>>b,a){
  a+=b;
  int t=0;
  while(a>0){
    a/=10;
    t++;
  }
  cout<<t<<endl;
}
}

C++: #include<iostream>
#include<sstream>
#include<cmath>
using namespace std;
   
int main(){
string s;
int a,b,c;
while (getline(cin, s ))
{
int SpaceInd = s.find_first_of(" ");
 
std::istringstream iss1(s.substr(0,SpaceInd));
iss1 >> a;
   
std::istringstream iss2(s.substr(SpaceInd+1));
iss2 >> b;
cout<<(int)log10(a+b)+1<<endl;
}
return 0;
}

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

int main()
{
    int a, b;
    int l;

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

    return 0;
}

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

#define rep(p,q) for(int i = p; i < q;i++)

//2
int main(void) {
	int a, b;
	while (cin >> a >> b) {
		string sumLen = to_string(a + b);
		cout << sumLen.length() << endl;
	}
}

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

int main() {
	int a, b;
	while (cin >> a >> b;) {
		if (a + b < 10)
			cout << "1" << endl;
		else if (a + b < 100)
			cout << "2" << endl;
		else if (a + b < 1000)
			cout << "3" << endl;
		else if (a + b < 10000)
			cout << "4" << endl;
		else if (a + b < 100000)
			cout << "5" << endl;
		else if (a + b < 1000000)
			cout << "6" << endl;
		else if (a + b < 10000000)
			cout << "7" << endl;
		else if (a + b < 100000000)
			cout << "8" << endl;
		else if (a + b < 10000000000)
			cout << "9" << endl;
	}
	return 0;
}

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

int main() {
/*	int a[3];
	cin >> a[0] ;
	a[1] = 3;
	a[2] = a[0] * 10;

	cout << a[0] <<" " << a[1] <<" "<< a[2] << endl;
	
	for (int i = 0; i < 3; i++) {
		cout << a[i] << endl;
	}


	sort(a,a+5);
*//*
	int a[10];
	for (int i = 0; i < 10; i++) {
		cin >> a[i];
	}
	
	sort(a,a+10,greater<int>());

	for (int i = 0; i < 3; i++) {
		cout << a[i]<<endl;
	}
*/
	int ans = 0;
	int a, b,c;
	while(cin>>a>>b) {
		ans = 0;
		c = a + b;

		if ( c==0   ) {
			ans = 1;
		}
		else{
			while (c > 0) {
				c /= 10;
				ans++;
			}
		}
		cout << ans << endl;
	}
	return 0;;
}

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

int main(){

	int a,b,sum,ans;
	while(cin >> a >> b){
		
		sum = a + b;

		for (ans = 0;;++ans){
			sum = sum / 10;
			if(sum <= 0){
				++ans;
				break;
			}
		}
		cout << ans;
	}
	return 0;
}

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

int main()
{
	float a,b,c=0,d=0;
	while(1){
		cin>>a;
		cin>>b;
		if(a==c&&b==d)
			return 0;
		cout<<(int)log10(a+b)+1<<endl;
		c=a;
		d=b;
	}
}

C++: #include<iostream>

using namespace std;

int main(){

  while(1){
    int a,b;
    cin >> a >> b;
    int count = 0;
    int result = a + b;
    while(1){
      if(result == 0){
        cout << count << "\n";
        break;
      }
      result /= 10;
      count++;
    }
  }
  return 0;
}

C++: #include <iostream>
using namespace std;
int main(void)
{
    int a, b;
    while(cin >> a >> b)
    { 
        cout << a + b << "\n";
    }
}

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

int main()
{
  int a,b;
  int answer[20];
  int count = 0;
  while(cin >> a >> b){
    answer[count] = (int)log10(a+b) +1;
    cout << answer[count] << endl;
  }
  return 0;
}

C++: import math 
a = input()
b = input()

c = int(math.log10(a) + 1) + int(math.log10(b) + 1)

print c

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

int main()
{
	int a, b;
	int keta;

	while( cin >> a >> b )
	{
		keta = 0;
		a += b;
		while( 1 )
		{
			a /= 10;
			if( a != 0 )
			{
				keta++;	
			}else{
				break;
			}
		}
		cout << ( keta + 1 ) << endl;
	}
	return 0;
}

C++: #include<stdio.h>

int main(void)
{
	int a, b, x;
	while(scanf("%d %d", &a, &b)!=EOF)
	{
		x=a+b;
		if(x<10)
		printf("1\n");
		else if(x<100)
		printf("2\n");
		else if(x<1000)
		printf("3\n");
		else if(x<10000)
		printf("4\n");
		else if(x<100000)
		printf("5\n");
		else if(x<1000000)
		printf("6\n");
		else if(x<10000000)
		printf("7\n");
	}
	
	return 0;
}

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

using namespace std;

int main(){
	while(!cin.eof()){
		int a,b;
		cin>>a>>b;
		int m = a+b;
		if(m == 0)
			cout << "1" << endl;
		else { 
			int ans = (int)log10((double)m * 10);
			cout << ans << endl;
		}
	}
	return 0;
}

C++: #include <cctype>
#include <cmath>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#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 SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define LL long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
typedef pair<int, int> P;
typedef pair<LL, LL> LP;
typedef pair<int, P> PP;
typedef pair<LL, LP> LPP;

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

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

C++: #include<iostream>
using namespace std;
int main()
{
	int a, b, sum;
	for (int i = 0; i < 200; i++)
	{
		cin >> a >> b;
		sum = a + b;
		if (sum < 10)cout << "1" << endl;
		if (sum < 100 && sum >= 10)cout << "2" << endl;
		if (sum < 1000 && sum >= 100)cout << "3" << endl;
		if (sum < 10000 && sum >= 1000)cout << "4" << endl;
		if (sum < 100000 && sum >= 10000)cout << "5" << endl;
		if (sum < 1000000 && sum >= 100000)cout << "6" << endl;
		if (sum < 10000000 && sum >= 1000000)cout << "7" << endl;

	}
}

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

using namespace std;

int main()
{
	int a[200], b[200], n, ans=0;
	for (int i = 0; i < 200; i++) 
	{
		cin >> a[i] >> b[i];
		n = a[i] + b[i];
		while (n >= 1) 
		{
			n /= 10;

			ans++;
		}
		cout << ans << endl;
		ans = 0;
	}
}

C++: #include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <vector>
#include <iostream>
#include <set>
using namespace std;
typedef long long ll;

int main(int argc, char const *argv[]) {
	int a, b;
	while (cin >> a >> b) {
		int sum = a + b;
		int res = 0;
		while (sum > 0) {
			sum /= 10;
			res++;
		}
		cout << res << endl;
	}
	return 0;
}

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

int keta(int num) {
	int result = 1;
	while (true) {

		if (num < 10)return result;

		num /= 10;
		result++;
	}



}

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

	}
	

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