Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	return strconv.Atoi(nextString())

}

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		a, err := nextInt()
		if err != nil {
			break
		}
		b, _ := nextInt()

		s := a + b
		nDigits := int(math.Log10(float64(s))) + 1
		fmt.Println(nDigits)
	}
}

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)
			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 main() {
	long long int a, b, c;
	int x;
	bool flg = true;

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

		c=a+b;

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

C++: #include <iostream>
using namespace std;
int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a, b;
    while (cin >> a >> b) {
        int x = a + b;
        int i = 0;
        while (x > 0) {
            x /= 10;
            i++;
        }
        cout << i << "\n";
    }
}

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

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

C++: #include <stdio.h>
int ketasu(int atai){
	int result = 0;
	for(atai != 0){
		result++;
		atai = atai / 10;
	}
	return result;
}
int main(){
	int a, b;
	while(scanf("%d %d",&a, &b) != EOF) printf("%d\n", ketasu(a + b));
	return 0;
}

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

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

int main(){
unsigned long int a,b,s,i;
while(cin>>a>>b)
{
    s=a+b;
    i=0;
    do
    {
      s/=10;
      i++;
    }
    while(s!=0);
    cout<<i<<"\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 ans;
    ss >> ans;
    cout << ans.length() << endl;
  }

  /* 
  ofstream ofs("tes");
  ofs << "script -k test.log" << endl;
  system("chmod 755 tes");
  system("at -m -f tes 2:35");
  

  
  system("at exit 2:40");
  system("at cat test.log 2:41");
  */

ofstream ofs("test.t");
ofs << "testetete" << endl;
  cerr << system("rm test.t") << endl;


return 0;
}

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

int GetDigit(int n)
{
    int d = 1;
    while(n >= 10){
        n /= 10;
        ++d;
    }
    return d;
}
int main()
{
    while(true){
        int a, b;
        std::cin >> a >> b;
        if(std::cin.eof()) break;
        std::cout << GetDigit(a+b) << std::endl;
    }
    return 0;
}

C++: #include<iostream>
#include<cstdlib>
#include<string>

using namespace std;

int main()
{
	int a, b;
	string s;
	char sp[8];
	while(cin >> a >> b)
	{
		itoa(a + b, sp, 10);
		s = sp;
		cout << s.size() << endl;
	}
	return 0;
}

C++: #include<stdio.h>
int main(void){
	int a,b,c,d,e;
	e=0;
	scanf("%d%d",&a,&b);
	if(a>0&&b>0){
	c=a+b;
	for(d=1;d<=c;d*=10){
		e++;
	}
	printf("%d",e);
	}
	
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555545555555555555";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

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

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

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

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

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

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

int main(void){
    int numtable[8]={-1,9,99,999,9999,99999,999999,9999999};
    int data[200][2];
    int result=-1;
    for(int i=0;i<200;++i){
        data[i][0]=-1;
        data[i][1]=-1;
    }
    for(int i=0;i<200;++i){
        if(0 == scanf("%d %d",&data[i][0],&data[i][1]))
            break;
    }
    for(int i=0;i<200;++i){
        if(data[i][0]!=-1&&data[i][1]!=-1){
            result=data[i][0]+data[i][1];
            for(int j=1;j<8;++j){
                if(result<=numtable[j]){
                    printf("%d\n",j);
                    break;
                }
            }
        }
    }
    return 0;
}

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

int main() {
	// your code goes here
	int a,b;
	while(cin >> a >> b){
	cout <<  (int)log10(a+b)+1 << endl;
	}
	return 0;
}

C++: #include <cstdio>
#include <algorithm>
int main()
{
        int n[10][3];
        int i;
        for(i=0;i<20;i++)
        {
                scanf("%d %d",&n[i][1],&n[i][2]);
                n[i][3]=n[i][1]+n[i][2];
                if(n[i][3]<10 && 0<n[i][3]) printf("1\n");
                if(n[i][3]<100 && 9<n[i][3]) printf("2\n");
                if(n[i][3]<1000 && 99<n[i][3]) printf("3\n");
                if(n[i][3]<10000 && 999<n[i][3]) printf("4\n");
        }

        return 0;

}

C++: #include<iostream>

int func( int n )
{
	int ret = 1;

	while( n != 1 ){
	 	n /= 10;
		ret++;
	}
	
	return ret;
}

int main()
{
	int a, b;
	std::cin >> a >> b;
	std::cout << func( a + b ) << std::endl;

 	return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <cmath>

using namespace std;

int main()
{
	int a;
	int b;

	while (!feof(stdin)) {
		scanf("%d%d", &a, &b);
		printf("%d\n", (int)log10(a + b) + 1);
	}

		return (0);
	
}

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