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++: import java.util.*;

public class Main {
    public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	while(s.hasNext()) {
	    int sum = s.nextInt() + s.nextInt();
	    System.out.println(String.valueOf(sum).length());
	}
    }
}

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(i=1;;i++){
		if( (c/pow(10,i) >=1 ){
			ret++;
		}else{
			break;
		}
	}
	cout <<ret <<endl;
		
	return 0;
}

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

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

int main()
{
	int a,b,c;
	while(cin >> a >> b)
	{
		
	stringstream s;

	cin >> a >> b;
	c = a+b;

	s << c;
	cout << s.str().size() << endl;
	}
	return 0;
}

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

int main() {

	int a, b, c,d;
	char e[100];

	while (cin >> a >> b) {

		c = a + b;

		d = sprintf_s(e, "%d", c);

		cout << d << endl;
	}
	return 0;
}

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



int main() {

//変数の宣言

	int a,b,sum,i=0;



/////メイン処理/////


	while(cin>>a>>b){ 
//入力
		sum = a + b;
//桁数の計算
	
		while(1){
			if (pow(10,i)<=sum && pow(10,i+1) > sum){
				cout << i+1 <<endl;
				break;
			}
			i++;
		}
		
		i = 0
	}
	
	
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;

// 引数xの桁数を返す関数
// ※xは正の整数でなければならない
int keta(int x){
	int k=0;
	while(x > 0){
		x /= 10;
		k++;
	}
	return k;
}

main(){
	int a,b;
	// 入力の終わりまで繰り返す
	while(cin >> a >> b){
		
		// a+b の桁数を計算して出力する
		printf("%d\n", keta(a+b));
	}
}

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

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

C++: #include<iostream>
using namespace std;
 
void digitLength()
{
    int a = 5;
    int b = 7;
    int len = 1;
    int div;
    
    int var = a+b;
    
    while(1)
    {
        div = var / 10;
        
        if(div == 0)
            break;
        var = div;
        len++;
        
    }
    
    cout<<len;
    return;
}
 
 
int main(){
 
    digitLength();
    return 0;
}

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

int digitCount(int number)
{
    int result = 1;
    while (number > 9) {
        number /= 10;
        result++;
    }
    return result;
}

int main(int argc, const char * argv[]) {

    std::string line;
    std::vector<int> sum;
    int n1 = 0;
    int n2 = 0;
    
    while (std::getline(std::cin, line))
    {
        sscanf((const char*) line.c_str(), "%d %d", &n1, &n2);
        sum.push_back(digitCount(n1 + n2));
        
    }
    std::cout << std::endl;
    std::cout << std::endl;
    
    std::vector<int>::iterator it = sum.begin();
    std::cout << *it << std::endl;
    
    while (++it < sum.end()) {
        
        std::cout << *it << std::endl;
    }
    
    return 0;
}

C++: #include <cstdio>

#define MAX 1000000
#define MIN 0
#define SIZE 200

int main() {
 int i;
 int a,b;
 int cnt = 0;
 int buf = 0;
 int sets[SIZE];

 while(scanf("%d %d",&a,&b) != EOF) {
  if((a < MIN) || (b > MAX)) continue;
  
  sets[cnt] = a + b;
  ++cnt;
 }

 for(i = 0;i < cnt;++i) {
  while(sets[i] != 0) {
   ++buf;
   sets[i] /= 10;
  }

  sets[i] = buf;
  buf = 0;
 }

 for(i = 0;i < cnt;i++) {
  printf("%d\n",sets[i]);
 }

 return 0;
}

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

int main(){
  int x, y;

  while(1){
    cin >> x >> y;
    cout << to_string(x + y).size() << endl;
    if(cin.eof()) {break;}
  }

  return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <sstream>
using namespace std;
int main()
{

	int len[200];
	int max = 0;
	for(int num = 0 ;num < 200 ; num++)
	{
		string str;
		string item;
		vector<string> list;
		getline(cin, str);
		if (str == "")
		{
			break;
		}

		stringstream ss(str);
		while (getline(ss, item, ' ') && !item.empty()) {
			list.push_back(item);
		}
		int sum = stoi(list[0].c_str()) + stoi(list[1].c_str());
		int count = 0;
		for (int i = 10; i <= 1000000; i = i * 10)
		{
			count++;
			if(sum < i)
			{
				len[num] = count;
				max++;
				break;
			}


		}
	}
	for (int num = 0; num < max; num++)
	{
		cout << len[num] << endl;

	}
	return 0;
}

C++: #include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int main()
{  
    long long a,b,s;
    while( cin>>a>>b )
    {
           long long dem=0;
           s=a+b;
           while(s>0)
           {
                     s=s/10;
                     dem++;
           }
           cout<<dem<<endl;
    }
}

C++: #include<stdio.h>

 int main(void){
   int div = 1;
   int i,s,sum,count = 0;

   fscanf(stdin,"%d %d",&i,&s);
   sum = i + s;

   while(1){
     if(sum/div == 0){
       break;
     }
     div *= 10;
     count++;
   }

   printf("%d\n",count);

   return 0;
 }

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

#define INPUTSIZE 10

int main() {
    int a, b, sum, digit;

    while (cin >> a >> b) {
        sum = a + b;

        digit = 0;
        while (sum > 0) {
            sum /= 10;
            digit++;
        }
        cout << digit << endl;
    }

    return 0;
}

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

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

int main()
{
	int a,b,sum;
	int count = 1;

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

		sum = sum / 10;
		count++;
	}

	cout << count << endl;


	return 0;
}

C++: #include <stdio.h>

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

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

C++: #include <bits/stdc++.h>
using namespace std;

int main(){
	int a,b,keta;
	while(cin>>a>>b){
		keta = 1;
		a = a+b;
		while(a /= 10){
			keta++;
		}

		cout<<keta<<endl;
	}
	return 0;
}

C++: #include<iostream>

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

C++: #include <bits/stdc++.h>
using namespace std;

int main(){
	int a,b;
	while(	cin >> a >> b ){
		int s = a+b;
		int ans = 0;
		while(s){
			ans++;
			s /= 10;
		}
		if( a+b == 0 ) cout << 1 << endl;
		else cout << ans << endl;
	}
}