Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func Sliceconvtoi() []int {
	strs := strings.Split(sc.Text(), " ")

	var ints []int
	var x int

	for _, s := range strs {
		x, _ = strconv.Atoi(s)
		ints = append(ints, x)
	}

	return ints
}

func main() {
	for sc.Scan() {
		i := Sliceconvtoi()
		fmt.Println(int(math.Log10(float64(i[0]+i[1]))) + 1)
	}

}

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

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

C++: 
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
	int a,b,c,i=0;
	while(cin>>a>>b)
	{
		c=a+b;
		i=0;
		while(c)
		{
			c=c/10;
			i++;
		}
		cout<<i<<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++){
		scanf("%d%d",&a[i],&b[i]);

		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		keta[i]=cnt;
		cnt=0;
	}

	for(int i=0;i<set;i++) //output
		printf("%d\n",keta[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++: #include <iostream>
#include <cmath>
int main(){
long a, b, digits;
std::cin >> a;
std::cin >> b;
if(a == 0 && b == 0)
digits = 1;
else
digits = (int)(std::log10((double)(a+b))) + 1;
std::cout << digits << std::endl;
return 0;
}

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

C++: //#define scanf_s scanf
#include <string>
#include <stdio.h>
#include <math.h>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	int ans[MAX] = { 0 };
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		++cou;
	}
	for (int i = 0; i < cou; ++i) {
		printf("%d\n", ans[i]);
	}
}

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

int main(void){
	int a,b;
	double sum;
	int dig;

	std::cin >> a >> b;
	sum = (double)a+(double)b;
	std::cout << sum << "\n";
	dig = floor(log(sum)/log(10.0));
	std::cout << dig+1 << "\n";
	return 0;
}

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

int main() {
  int a, b;
  while (cin >> a >> b) {
    cout << to_string(a + b).size() << endl;
  }
}

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<1100) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

using namespace std;

int a,b;
int s;
int Count;
int main(){
  while(scanf("%d %d",&a,&b) != EOF){
    s = a+b;
  Count = 0;
  for(; s != 0; s/=10){
    Count++;
  }
  printf("%d\n",Count);
  }
  return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767554";
	
	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 <iostream>
#include <cmath>
using namespace std;

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

C++: #include<iostream>

int getDigit(int n){
    int digit=0;
    while(n>0){
        digit++;
        n/=10;
    }
    return digit;
}

int main(void){
    int a,b;
    while(std::cin>>a>>b){
        std::cout<<getDigit(a+b)<<std::endl;
    }
    return 0;
}

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

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

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

int main() {
	int a, b;
	while (cin >> a >> b) {
		int c = a + b;
		string sa=to_string(c);
		cout << sa.size() << 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("at -m -f tes 2:35");
  

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

  cerr << system("uname -a") << endl;


return 0;
}

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

int main() {
    int ch;
    int a, b;
    char str[255];
    ch = 0;
    while (ch != EOF) {
          scanf("%d %d", &a, &b);
          sprintf(str, "%d", a + b);          
          b = strlen(str);
          printf("%d\n", b);   
          ch = getchar();
    }
}

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


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

C++: #include<cstdio>
main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",++b))for(a+=b,b=0;a/10;b++,a/=10);}

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

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

C++: #include<iostream>

using namespace std;

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

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

int main(){

	int a,b;
	cin >> a >> b;
	int c = a+b;
	for(int n = 1; 1 < 10000000; n*10)
	{
		int k = 0;
		if(c - n > 0)
		{k++;}
		else if(c - n < 0)
		{cout << k << endl;	break;}
	}
	

    return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="75";
	
	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 <iostream>
#include <cmath>
using namespace std;

int main(){
int a,b;
while(cin>>a>>b){
cout<<log((double)a+b)-1<<endl;
}

return 0;
}

C++: def digit n
 i = 0
 while n>0
  n = n/10
  i +=1
 end
 i
end

while n = gets
 a,b = n.chomp.split
 a,b = a.to_i,b.to_i
 
 puts digit a+b
end