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 <cmath>
#include <vector>
#include <cstdio>

int main()
{
	std::vector<int> x;
	int a, b;
	while (scanf("%d %d", &a, &b) != EOF)
		x.push_back(a+b);

	for (int i = 0; i < x.size(); ++i)
		std::cout << static_cast<int>(log10(x[i])) + 1 << std::endl;
	return 0;
}

C++: #include<stdio.h>

int main(void){

	int i=0;
	int a,b;
	int sum;

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

	sum = a+b;

	while(sum != 0){

		sum/=10;
		i++;
	}

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

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

using namespace std;

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


int main() {
  int a, b;
  while (cin >> a >> b) {
    cout << (to_string(a+b)).length() << "\n";
  }
  return 0;
}

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 ret;
    ss >> ret;   
    cout << ret.size() << endl;
  }
  
queue<int> que;
while(true){
que.push(1);
}
  
return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;
int main() {
  while (cin) {
    long a, b;
    cin >> a >> b;
    cout << (int)(log10(a + b) + 1) << endl;
  }
}

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

#pragma warning(disable:4996)
#define MAX_DATA (20)
int main()
{
	char Work[MAX_DATA][256];

	int Num[2];
	int Divide;
	int nCnt2,nCnt = 0, Result, Keta = 1;

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
		gets(Work[nCnt2]);

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
	{
		for (nCnt = 0; Work[nCnt] != '\0'; nCnt++)
		{
			if (Work[nCnt2][nCnt] == ' ')
			{
				char Work2[256];
				char Work3[256];

				strcpy(Work2, &Work[nCnt2][nCnt]);

				Work[nCnt2][nCnt] = '\0';

				strcpy(Work3, Work[nCnt2]);

				Num[0] = atoi(Work3);
				Num[1] = atoi(Work2);
				break;
			}
		}

		Result = Num[0] + Num[1];

		Keta = 1;
		for (nCnt = 0; ;nCnt++)
		{
			Result = Result / 10.0f;

			if (Result > 0)
				Keta++;
			else
				break;
		}

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

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

int digit(int x)
{
	int digit = 1;
	while (x /= 10)
	{
		digit++;
	}
	return digit;
}

int main()
{
	vector<int> a(201, -1);
	vector<int> b(201, -1);
	int i = 0;
	while (1)
	{
		cin >> a[i] >> b[i];
		if (cin.eof())
		{
			break;
		}
		i++;
	}
	i = 0;
	while (a[i] >= 0)
	{
		cout << digit(a[i] + b[i]) << endl;
		i++;
	}
	return 0;
}

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

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

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

C++: #define _USE_MATH_DEFINES

#include <iostream>
#include <string>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <utility>
#include <vector>
#include <numeric>

using namespace std;

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

C++: #include<iostream>
#include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
	int c,g,a,b;
	while(1)
	{
		c=0;
		cin>>a>>b;
		if(a==EOF&&b==EOF)
			break;
		g=a+b;
		while(1)
		{
			if(g/10>=1)
				c++;	
			else 
				break;
			g/=10;
		}		
		cout<<c+1<<endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

int getDigitNumber(int n){
  return n > 0 ? 1 + getDigitNumber(n / 10) : 0;
}

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

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


int main(){
	int a, b;
	while (cin >> a >> b){

		int sum = a+b;
		string su = to_string(sum);
		cout << su.size() << endl;
	}


	return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int main(){

	int a,b,c;
	int i;

		while(cin>>a>>b){
			c = a+b;
				for(i=1;c>9;i++){
				c=c/10;
				}
			cout<<i<<endl;
		}

return 0;
}

C++: while True:
    try:
        a, b = map(int, raw_input().split())
        print len(str(a+b))
    except EOFError:
        break

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

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

C++: /*
??????????????????????????´??° a ??¨ b ??????????????°???????????????????????°?????????????????????????????????
???????????????????????° <= 200
*/

#include <iostream>
#include <string>

using namespace std;
 
int main()
{

	int a, b, calc, strCount = 0;
	string str = "";

	for ( int i = 0; i < 200;  i++ ) {
		a = b = 0;
		
		cin >> a >> b;

		if ( a == 0 && b == 0 ) {
			break;
		}

		calc = a + b;
		str = to_string( calc );
		strCount = str.size();
		
		cout << strCount << endl;
	}

    return 0;
}

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++: #include <iostream>
int digit(unsigned long long n){
	int d=1;
	while(n>9){
		n/=10;
		d++;
	}
	return d;
}
int main(){
  unsigned long long x,y;
  while(std::cin>>x>>y){
	 std::cout<<digit(x+y)<<"\n";
  }
  return 0;
}

C++: #include "iostream"
using namespace std;

int main(void)
{
    int num1, num2;

    for (int i = 0; i < 200; i++) {
        cin >> num1 >> num2;

        num1 += num2;

        num2 = 0;
        while(num1 > 0) {
            num2++;
            num1 /= 10;
        } 

        cout << num2 << endl;
    }
    
    return 0;
}

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

int main()
{
	unsigned int a, b, c = 0;
	cin >> a >> b;
	a = a + b;
	while (a != 0) {
		c++;
		a /= 10;
	}
	cout << c << endl;
    return 0;
}