Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	//sc.Split(bufio.ScanWords)
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		n1, _ := strconv.Atoi(s[0])
		n2, _ := strconv.Atoi(s[1])
		fmt.Printf("%d\n", len(strconv.Itoa(n1+n2)))
	}
}

C++: #include <iostream>

using namespace std;

int countDigitNumber(int num);

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

int countDigitNumber(int num)
{
    int digits = 0;
    
    while (num) {
        num /= 10;
        digits++;
    }
    
    return digits;
}

C++: #include <iostream>
#include<cstdio>
using namespace std;
int main()
{
    char a,b;
    while(a=getchar() && a!=EOF){
        cin>>b;
        int sum=0,c=a+b-96;
        while(c!=0){
            c=c/10;
            sum++;
        }
        cout<<sum<<endl;
    }
    return 0;
}

C++: #include <iostream>
#include<string>
#include<cmath>
#include<algorithm>
#include<cctype>
#include<queue>
#include<stack>
#include<stdio.h>
#include<vector>
#include<set>
#include<map>
#include<iomanip>
#define rep(i,n) for(int i=0;i<n;i++)
typedef int long long ll;

using namespace std;
int main(){

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




return 0;
}

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

int main() {
	int cnt = 0;
	char a;
	while (getchar()!= '\n') {
		cnt++;
	}
	while (getchar() != '\n') {
		cnt++;
	}
	cout << cnt<<endl;
	return 0;
}

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

int main()
{
  int tmp,tmp2;
  cin >> tmp >> tmp2;
  tmp += tmp2;
  
  to_string(tmp);
  cout << tmp.length << endl;
  return 0;
}

C++: #include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;

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

C++: #include <stdio.h>

//int digit( x );
int digit( x ){
  int c=1;
  while( (x / 10) != 0){
    x /= 10;
    c++;
  }
  return c;
}
int main(){
  int a, b;
  int x;

  while( scanf("%d %d", &a, &b) != EOF){
    x = digit( a+b );
    printf("%d\n", x);
  }
  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-----
		switch(cnt){
		case 0:
			if(a<500000) flg=true; 
			break;
		}
		
		if(flg) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

int count_digits(int n) {
  return static_cast<int>(floor(log10(n))) + 1;
}

int main() {
  int n, m;
  while (!std::cin.eof()) {
    std::cin >> n >> m;
    std::cout << count_digits(n + m) << std::endl;
  }
}

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

int main(){
    int a,b;
    int cnt=1;
    
    while(scanf(" %d %d",&a,&b)){
        cnt=1;
        int a=10;
        for(int i=1;i<9;i++){
            if((a+b)-a<=0)break;
            //cout << a << ' ' << b << '=' << a+b << endl;
            cnt++;
            a*=a;
        }
        cout << cnt << endl;
    }
    
    
    return 0;
}

C++: #include <iostream>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <cmath>
#include<algorithm>
using namespace std;
int main()
{
    int a,b;
    while(cin>>a>>b){
        a=log10(a+b)+1;
        cout<<a<<endl;
    }
    return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include<iomanip>
#include<vector>
#include<cmath>
#include <algorithm>

using namespace std;

int main(){
	int a,b;
	while (scanf("%d %d",&a,&b) != -1){
		string s = to_string(a + b);
		cout << s.length() << endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void)
{
    int a,b;
    cin >> a >> b;
    cout << a + b;
}

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

int main() {
	int a,b,c,d,e;
	cin>>a>>b;
	c=a+b;
	d=c;
	e=1;
	while(true){
		if(d<10){
		break;
		}
		d=d/10;
		e=e+1;
	}
	cout<<e;
	return 0;
}

C++: #include<stdio.h>
#include<iostream.h>
int main(){
	int ab[200][2],f,i=0,a,g,k=0;
	while(cin<f){
		scanf("%d %d",&ab[i][1],&ab[i][2]);
		i++;
	}
	for(int j=0;j<i;j++){
		a=ab[j][1]+ab[j][2];
		for(g=0;;g++){
			a=a/10;
			k++;
			if(a==0){
				printf("%d\n",k);
				break;
			}
		}
		k=0;
	}
	return 0;
}

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

int main(){
        while(1){
                int a, b;
                scanf("%d%d", &a, &b);
                double temp =log10(a + b);
                cout << floor(temp) << endl;
        }
        return 0;
}

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

int main(){
  int a,b;
  int an[1000];
  int con[1000];
  int i=0,j,k;

  while(cin>>a>>b){
    an[i] =a + b;
    con[i] = 1;
    while(an[i]>1){
      an[i] /= 10;
      con[i]++;
    }
    i++;
      }
  cout<<endl;
  for(j=0;j<i;j++){
    cout<<con[j]<<endl;
  }

  return 0;

}

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

int main()
{
    int a, b;
    while (1) {

        cin >> a >> b;
        if (a == 0 && b == 0)
            break;
        int c = a + b;
        int ans = 0;
        while (c != 0)
        {
            c /= 10;
            ans++;
        }
        cout << ans << endl;
    }
    return 0;
}

C++: #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <string.h>
#include <algorithm>
#include <cmath>
#include <limits>
#include <sstream>

using namespace std;

int main (void)
{
	for (int i = 0; i < 200; i++)
	{
		int n,m;
		cin >> n >> m;
		
		int u = 0;
		u = n + m;

		stringstream str;
		str << u;
		string p = str.str();
		
		int q = 0;
		q = p.size();
		
		cout << q << endl;
	}
}

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

int main()
{
	int a, b;

	while(cin >> a >> b)
	{ 

	int sum = a + b;

	int keta;

	if (sum / 1000000 >= 1) keta = 7; 
	else if (sum / 100000 >= 1) keta = 6; 
	else if (sum / 10000 >= 1) keta = 5; 
	else if (sum / 1000 >= 1) keta = 4; 
	else if (sum / 100 >= 1) keta = 3; 
	else if (sum / 10 >= 1) keta = 2;
	else keta = 1;

	cout << keta << endl;

	}

	return 0;
}

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

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

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

using namespace std;

int main(void)
{
	int result[3];

	for(int i = 0; i < 3; i++){
		int a, b;
		scanf("%d %d", &a, &b);
		a+=b;
		int d = 1;
		a /= 10;
		while(a > 0){
			a /= 10;
			d++;
		}
		result[i] = d;
	}

	for(int i = 0; i < 3; i++){
		cout << result[i];
	}

	return 0;
}

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

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

int digit(int num) {
    int dig = 0;
    while (1) {
        dig++;
        if (num / 10 == 0) {
            break;
        }
        num /= 10;
    }
    return dig;
}

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