Go: package main

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

func main() {
        sc := bufio.NewScanner(os.Stdin)

        for sc.Scan() {
                digits := 0
                num := 0
                for _, s := range strings.Fields(sc.Text()) {
                        i, _ := strconv.Atoi(s)
                        num += i
                }
                for num > 0 {
                        digits += 1
                        num /= 10
                }
                fmt.Printf("%d\n", digits)
        }
}

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

int calc_sum_bit(int sum)
{
	int res = 0;
	if (sum == 0) return 1;
	while (sum != 0)
	{
		++res;
		sum/= 10;
	}
	return res;
}

int main()
{
	int a, b;

	while(cin >> a >> b)
	{
		int sum = a + b;
		cout << calc_sum_bit(sum) << endl;
	}

	return 0;
}

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

int main(){
	int a,b,keta[300] = {0},kcor = 0;
	while(cin >> a){
		cin >> b;
		if(a+b == 0){
			keta[kcor] = 1;
		}
		else{
			keta[kcor] = log10(double(a+b))+1;
		}
		kcor++;
	}
	for(int i = 0;i < kcor;i++){
		cout << keta[i] << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <sstream>
 
using namespace std;
 
vector<int> d;
int input1, input2;
int sum;
stringstream ss;
 
int main(){
    
 while(cin >> input1 >> input2) {
     sum=input1+input2;
     ss << sum;
     cout << ss.str().size() << endl;
     ss.str("");
     ss.clear(stringstream::goodbit);
 }
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int a,b;
while(cin >> a >> b){
int x=1;
int ans=0;
while(x<=a+b){
x=x*10;
ans++;
}
printf("%d\n",ans);
}
return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		if(cnt==104) break;
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

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

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

using namespace std;

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

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

int main(){
	int a,b,c;
	
	while(!cin.eof()){
		cin>>a;
		cin >> b;
		c = a+b;
		int count = 1;
if(c==0){
cout<<0;
continue;
}
		while(c > 9){
			count++;
			c /=10;
		}

		cout<<count;
		
	}
	return 0;
}

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

long long digit(long long sum);

int main()
{
    long long a, b;
    while(cin >> a >> b)
    {
    long long sum = a+b; 
    
    cout<< digit(sum) << endl;
    }
    
    
    
return 0;
}


long long digit(long long sum)
{
     if(sum<10)
      return 1;
     else
         return (1 + digit(sum/10));
}

C++: #include <stdio.h>
using namespace std;
int main() {
	int a, b;
	int c[9];
	c[0] = 0;
	c[1] = 10;
	for(int i = 2; i < 10; i++) {
		c[i] = c[i - 1] * 10;
	}
	while(scanf("%d %d", &a, &b) != EOF) {
		int i = 0;
		while(a + b >= c[i]) i++; 
		printf("%d\n", i);
	}
	return 0;
}

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

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

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

C++: #include<cstdio>

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

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

#define rep(x,to) for(x=0;x<to;x++)
#define rep2(x,from,to) for(x=from;x<to;x++)

using namespace std;


int main(void){

int a, b, c;

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

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

int main(){
	int a,b,c;
	int ans;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;
		//-----test-----
		if(a!=1172) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <stdio.h>
#include <math.h>
#include <stdlib.h>
int main(void)
{
	int a, b,qes;
	int x, y;
scanf("%d", &x);
scanf("%d", &y);
qes=x+y;
	a = 1;
	b = 0;
	while (qes / a != 0)
	{
		a *= 10;
		b++;
	}
	printf("%d", b);
	return 0;
}

C++: #include<iostream>
int main(){
	int a,b;
	std::cin>>a>>b;
	int c=a+b;
	if(c/1000000>=1)std::cout<<7<<std::endl;
	else if(c/100000>=1)std::cout<<6<<std::endl;
	else if(c/10000>=1)std::cout<<5<<std::endl;
	else if(c/1000>=1)std::cout<<4<<std::endl;
	else if(c/100>=1)std::cout<<3<<std::endl;
	else if(c/10>=1)std::cout<<2<<std::endl
	else std::cout<<1<<std::endl;
	return 0;
}

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

using namespace std;

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

    cout << floor(log10(a + b)) + 1 << endl;

    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("./tes");

return 0;
}