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 <string>
using namespace std;

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

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

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

int main(){

int i,d,n1,n2,sum,c;


   cout << "データセットの数を入力してください。(データセットの数 <= 200):";
   cin >> d;
   while(d <= 0 or d >= 200){
       cout << "データセットの数 <= 200を満たしておりません。もう一度入力してください。\n";  
       cout << "データセットの数を入力してください。(データセットの数 <= 200):";
       cin >> d;
   }

int a[d],b[d];



//入力
for(i=0; i<d; i++){
   cout << "整数a,bを入力してください。(0<=a,b<=1000000):";
   cin >> n1 >> n2;
   
   if(n1 >= 0 and n1 <= 1000000 and n2 >= 0 and n2 <= 1000000){
       a[i]=n1;
       b[i]=n2;
   }else{
   cout << "入力した整数が条件をを満たしておりません。もう一度入力してください。\n";
   i--;
   }
}


    
//出力
cout << "データセット数は" << d <<"\n";

cout << "result\n";
for (i = 0; i < d; i++) {
     c=0;
     sum=a[i]+b[i];
     while((sum/10)!=0){
         c++;
         sum=sum/10;
     }
   cout << c+1 << "\n";
}

    return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
	long long a,b;
	while(cin>>a>>b)
	{
		int c=a+b;
		int n=0;
		while(c>0)
		{
			c=c/10;
			n++;
		}
		cout<<n<<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<1170) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <iostream>
  
u_int getDigit(u_int n){
    u_int digit = 0;
      
    while(n > 0){
        n /= 10;
        ++digit;
    }
      
    return digit;
}
    
int main(){
    u_int a, b;
      
    while(std::cin >> a >> b){
        std::cout << getDigit(a + b) << std::endl;
    }
      
    return 0;
}

C++: #include <bits/stdc++.h>
// #include "bits/stdc++.h"

#define pout(n)  printf ("%d\n", n)

#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)

const int d4x[4] = {1, 0, -1, 0};
const int d4y[4] = {0, 1, 0, -1};
const int d8x[8] = { 1,1,0,-1,-1,-1,0,1 };
const int d8y[8] = { 0,1,1,1,0,-1,-1,-1 };
 
typedef long long ll;
using namespace std;
 
int main() {
  ll a,b;
  while(cin >> a >> b){
    a += b;
    ll count = 0;
    
    while((a /= 10) > 0){
       a /= 10;
      count++;
    }
    
    printf("%lld",count);
  }
  return 0;
}

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

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

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

using namespace std;

int main()
{
	int a,b, ans;
	string sum;
	while(cin >> a >> b)
	{
		ans = a + b;
		sum = static_cast<string>(sum);
		cout << sum.size();
	}
	return 0;
}

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

int main(void)
{
  string s;
  int a,b;
  vector<int> array;
  int i=0;
  while(cin>>a,b)
    {
      s=a+b;
	 // c=(int)s.size();
      array.push_back(s.size());
    }

  while(i<array.size())
    {
      cout<<array[i]<<endl;
    }

}

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>

using namespace std;

int main() {

  int a,b;
  int sum;
  int count;

  while(cin >> a >> b) {

    count=0;

    sum=a+b;

    while(sum>0) {

      sum/=10;

      count++;

    }

    cout << count << endl;

  }

}

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

int main(void){
	int a,b,dig,i;
	double sum;
	std::cin >> a >> b;
	sum = (double)a+(double)b;
	dig = floor(log(sum)/log(10.0));
	std::cout << dig+1 << "\n";
	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==103) break;
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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


int digit( int n ){
    int d = 0;
    while( n != 0 ){
        n /= 10;
        d++;
    }
    return d;
}

int main(){
    string str;
    while (getline(cin, str)) {
        istringstream stream(str);
        int a, b;
        stream >> a >> b;
        cout << digit(a+b) << endl;
    }

    return 0;
}

C++: #include<iostream>
#include<string>
#include <algorithm>
#include<iomanip>
#include<cmath>
using std::cin; using std::string;
using std::cout; using std::endl;
using std::sort;
#define rep(X,Y) for(int (X)=0;(X)<(Y);++(X))
#define rept(X,Y,Z) for(int (X)=(Y);(X)<(Z);++(X))
#define repr(X,Y) for(int (X)=(Y);(X)>=0;--(X))
const double pi=3.141592653589793283462;
int main(){
    int a,b,c;
	while(cin>>a>>b){
	int co=1;
	c=a+b;
	while(1){
		if(c/10>=1){
			co+=1;
			c/=10;
		}
		else
			break;
	}
	cout<<co<<endl;
	co=1;
	}
	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<1180) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include "stdio.h"

int main(){
	int a=0,b=0,c=0,count=0,i;
	for(i=0;i<=3;i++){
	scanf("%d %d",&a,&b);
	c = a + b;
	while(c > 0){
		c = c/10;
		count++;
	}
	printf("%d\n",count);
	count = 0;
	}
}

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

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

C++: #include<iostream> 
using namespace std; 
void fun(int);
int main() 
{ 
	int a=0,b;
	while (a != EOF)
	{
		cin >> a >> b;
		fun(a + b);
	} 
	return 0; 
}
void fun(int a)
{
	int n = 0;
	while (a)
	{
		a = a / 10;
		n++;
	}
	cout << n << endl;
}

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

using namespace std;

int main()
{
	int digit;
	int a = 0, b = 0;
	string sum;

	while ( cin >> a >> b )
	{
		sum = to_string( a + b );
		digit = sum.length();
		cout << digit << endl;
	}

	return 0;

}

C++: #include<cstdio>
#include<string>
using namespace std;
int main(){
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		string c[255];
		printf("%d\n",sprintf(c,"%d",a+b));
	}
	return 0;
}

C++: # include <iostream>
using namespace std;
int main(){
  int a,b;
  while( cin >> a >> b){
  int N = a+b;
  int num_digit = 0;
  while (true){
    num_digit++;
    N = N/10;
    if(N<1) break;
    }
  cout << num_digit << endl;
  }
}

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

using namespace std;

int a,b;
int sum;
int ans = 0;
int digit;

int main(){
	while(scanf("%d%d",&a,&b)){
		sum = a + b;
		digit = sum / 10;

		printf("%d\n",(int)log10(sum) + 1);
	}
    return 0;
}