Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int

		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}

		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

C++: // aoj-1002.c

#include <stdio.h>

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

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

int main(){

	int a[2];
	cin >> a[0] >> a[1];
	int check=a[0]+a[1],retval=1;
	while(check>=10){
		check/=10;
		retval++;
	}
	cout << retval << endl;

    return 0;
}

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

int main() {
  int a, b;
  while (~scanf("%d %d", &a, &b)) {
    int sum, ans = 0;
    sum = a + b;
    while (sum) {
      sum /= 10;
      ++ans;
    }
    printf("%d\n", ans);
  }
}

C++: #include <iostream>

using namespace std;

int digits(int x)
{
	if (x >= 1000000) return 7;
	if (x >= 100000) return 6;
	if (x >= 10000) return 5;
	if (x >= 1000) return 4;
	if (x >= 100) return 3;
	if (x >= 10) return 2;
	if (x >= 1) return 1;
}
int main()
{
	int a;
	int b;
	int x;
	int y;
	while (cin >> a >> b)
	{
		x = a + b;
		int y = digits(x);
		cout << y << endl;
	}

	return 0;
}

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

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

using namespace std;

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

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

int main(){
    int a, b;
    stringstream ss;
    string s;

    while(cin >> a >> b){
        ss.clear();
        ss.str("");
        ss << a + b;
        s = ss.str();
        cout << s.length() << endl;
    }
    return 0;

}

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

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

C++: #include <iostream>
using namespace std;
int solve(int a,int b){
    int sum=a+b,ans=0;
    while(sum>0){
        ans++;
        sum/=10;
    }
    return ans;
}
int main(void){
    int a[300]={},b[300]={},i=0;
    cin>>a[0]>>b[0];
    cin>>a[1]>>b[1];
    if(a[0]==a[1]&&b[0]==b[1]){
        cout<<solve(a[0],b[0])<<endl;
        return 0;
    }
    while(a[i]!=a[i+1]&&b[i]!=b[i+1]){
        cin>>a[i+2]>>b[i+2];
        i++;
    }
    for(int j=0;j<i;j++){
        cout<<solve(a[j],b[j])<<endl;
    }
    return 0;
}

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


int main()
{
    int a, b;
    int count, tmp;

    while (std::scanf("%d %d", &a, &b) != EOF) {

        count = 0;
        tmp= a + b;

        while(tmp != 0) {
            count++;
            tmp /= 10;
        }

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

    return 0;
}

C++: #include <iostream>

using namespace std;

typedef long long ll;

int main(){

	ll a,b;
	while(1){
		cin >> a >> b;
		if(cin.eof()){
			break;
		}
		ll sum = a + b;
		int cnt = 1;
		while(sum / 10){
			sum/=10;
			cnt++;
		}
		cout << cnt << endl;
	}

	return 0;
}

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

int main()
{
	int x, y;
	while (cin >> x >> y){
		int a, b;
		if (x == 0){
			a = 0;
		}else{
			a = to_string(x).size();
		}
		if (y == 0){
			b = 0;
		}
		else{
			b = to_string(y).size();
		}
		cout << a + b << "\n";
	}
	cout.flush();
}

C++: #include<iostream>

using namespace std;

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

C++: #include <iostream>

using namespace std;

int main(){
	int a, b,x,cnt;	//?????°
	
	while (cin >> a >> b){
		cnt = 0;
		x = a + b;

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

		cout << cnt << endl;
	}
	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=0;

	scanf("%d",&set);
	for(int i=0;i<set;i++) //input
		scanf("%d%d",&a[i],&b[i]);

	for(int i=0;i<set;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		printf("%d\n",cnt);
		cnt=0;
	}

	return 0;
}

C++: #include <iostream>
#include <string>
#include <stdio.h>
#include <strstream.h>
#include <math.h>

using namespace std;

int main()
{
	string tmp;
	int nspace;
	do
	{
		getline(cin,tmp);
		if(cin.eof()) break;
		nspace=tmp.find(" ");

		string astring=tmp.substr(0,nspace);
		string bstring=tmp.substr(nspace+1);

		istrstream astr(astring.data());
		istrstream bstr(bstring.data());

		int a,b;

		astr>>a;
		bstr>>b;

		int a_keta=(int)log10(a)+1;
		int b_keta=(int)log10(b)+1;

		cout<<a_keta+b_keta;
		
				 
	}while(1);

	
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <bitset>
#include <set>
#include <queue>

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

const float PI = 3.1415926;
static const int INFTY = (1<<30);

using namespace std;

typedef long long ll;
typedef long double ld;

int n, a, b, res;

int main() {
  rep(i,3) {
    cin >> a >> b;
    n = a+b;
    res = 0;
    while(n>0) {
      n /= 10;
      res++;
    }
    cout << res << endl;
  }

  return 0;
}

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

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

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

C++: #include<stdio.h>


int main(){
	int a;
	int b;
	int i;
	int l=1;
	scanf("%d", &a);	
	scanf("%d", &b);
	i=a+b;
	while(i  >= 10){
		i=i/10;
		l=l+1;
	}
	printf("%d\n" ,l);
	return 0;
}

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

#define pout(n)  printf ("%d\n", n)

#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)

const int d4x[4] = {1, 0, -1, 0};
const int d4y[4] = {0, 1, 0, -1};
const int d8x[8] = { 1,1,0,-1,-1,-1,0,1 };
const int d8y[8] = { 0,1,1,1,0,-1,-1,-1 };
 
typedef long long ll;
using namespace std;
 
int main() {
  ll a,b;
  while(cin >> a >> b){
    a += b;
    ll count = 1;
    
    while((a /= 10) > 0){
       a /= 10;
      count++;
    }
    
    printf("%lld",count);
  }
  return 0;
}

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

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

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

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

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

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

C++: #include<iostream>
using namespace std;
int main()
	{
		int a, b, sum, result = 0;
		while (scanf("%d %d", &a, &b) != EOF)
		{
			sum = a + b;
			while (sum > 0){
				sum /= 10;
				result++;
			}
			cout << result;
		}

		return 0;
	
}