Go: package main

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

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++: #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;
}

C++: #include <stdio.h>
#include<string>
#include<string.h>
#include <math.h>
#include<iostream>
#include <algorithm>
#include <map>
#include <vector>
#include <queue>
using namespace  std;

void init()
{


#ifdef _WIN32
	freopen("1.txt", "r", stdin);
#endif
}

void func();

int main()
{
	init();
	func();

	return 0;
}

#define foreach(i,n) for(i=0;i<n;++i)
#define foreachd(i,n) for(int i=0;i<n;++i)
#define printfInt1(n) printf("%d\n",n)
#define scanfInt1(n) scanf("%d",&n)
#define scanfInt2(a,b) scanf("%d%d", &a, &b)
void func()
{
	int a,b;
	while(~scanfInt2(a,b))
	{
		char s[100];
		sprintf(s, "%d", a+b);
		printfInt1(strlen(s));
	}
}

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

int main(){

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

		while(a>=10){
			a /= 10;
			b++;
		}
		cout << b << endl;
	}

	return 0;
}

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

C++: #include <iostream>

int main(){
	int a, b ,i ,n ;
	while(std::cin>>a>>b){
	i=1;
	for(n=1;a+b>=i*10;n++){
	if(a+b>=i*10){
	i=i*10;
	}
	}
	std::cout<<n<<std::endl;
}
return 0;
}

C++: //32
#include<iostream>
#include<sstream>

using namespace std;

int main(){
  for(int a,b;cin>>a>>b;){
    stringstream ss;
    ss<<a+b;
    cout<<ss.str().size()<<endl;
  }
  return 0;
}

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

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

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

string int2str(int n){
	stringstream ss;
	ss<<n;
	string text;
	ss>>text;
	return text;
}

int main(void){

	while (true){
		int a,b;
		cin>>a;
		if (cin.eof()) break;
		cin>>b;
		cout<<int2str(a+b).size()<<endl;
	}
	
	return 0;
}

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

int getDigits(int n) {
    int res = 0;
    while (n != 0) {
        res ++;
        n /= 10;
    }
    return res;
}

int main() {
    string line;
    while (getline(cin, line)) {
        stringstream ss(line);
        int a, b;
        ss >> a >> b;
        cout << getDigits(a + b) << endl;
    }
}

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

main(void){
    int a[3],b[3],c[3];
    
    scanf("%d %d", &a[0], &a[1]);
    scanf("%d %d", &b[0], &b[1]);
    scanf("%d %d", &c[0], &c[1]);
    
    a[0] = a[0] + a[1];
    b[0] = b[0] + b[1];
    c[0] = c[0] + c[1];
    
    for( a[3] = 0; a[0] >= 1; a[3]++) a[0] / 10;
    for( b[3] = 0; b[0] >= 1; b[3]++) b[0] / 10;
    for( c[3] = 0; c[0] >= 1; c[3]++) c[0] / 10;
    
    printf("%d\n%d\n%d\n", a[3], b[3], c[3]);

    return 0;
}

C++: #include <iostream>

int main(){
    int a,b;
    int cc=1;
    while(std::cin>>a>>b){
    
    if(a>=0&&b<=1000000){
    int e=a+b;
    int d=1;
    int f;
    
    for(int c=1;c<8;c++){
    	if(e/d>=1){
    		f=c;
		}
    	d=d*10;
	}
	std::cout<<f<<std::endl;
          
cc++;
if(cc==200){
	return 0;
}
	
}
}
return 0;
}

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

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
	int a, b;
	cin >> a >> b;
	if(a >= 0 && b >= 0){
		int c = log10((double)a + b) + 1;
		cout << c << endl;
	}
	return(0);
}