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>

int main(int argc, const char * argv[]) {
    
    std::string a, b ;
    
    
    while ( std::cin >> a >> b )
        std::cout << (a+b).length() << "\n";
    
    return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
	int a,b;
	while(eof){
	cin>>a>>b;
int c=0;
int n;
n=a+b;
while (n>0){
	c++;
	n=n/10;
}

cout<<c<<endl;
}
}

C++: #include <iostream>
#include <sstream>
#include <cstring>

using namespace std;

int main()
{
	int a, b;
	
	while (cin >> a >> b){
		int sum = a + b;
		stringstream ss;
		ss << sum;
		cout << ss.str().size() << endl;
	}
	return (0);
}

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

int main()
{
	int d, a, b, s;

	d = 1;
	
	
	while(cin >> a >> b){
		
		s = 0;
		

		a += b;

		while(a>0){
			a /= 10;
			s++;
		}

		cout << s << endl;
		d++;

	}


	

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
int A,B,C,i=10,test=1;
cin >> A >> B;
C = A + B;
if(C<10){
cout << 1 << endl;
}
else{
while(test!=0){
i = i * 10;
test++;
if(C<i){
cout << test << endl;
test = 0;
}
}
}
}

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

int main()
{
  int n1, n2;
  int ans = 0;
  cin >> n1 >> n2;
  int sum = n1 + n2;
  while(sum > 0){
    sum /= 10;
    ans++;
  }
  cout << ans << endl;
}

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

int main(void){
	while(cin.eof()){
		int a, b, d=0, s; //d:digit s:sum
		cin >> a >> b;
		s = a + b;
		while(s>=1){
			s = s/10;
			d++;
		}
		cout << d << endl;
	}
	return 0;
}

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

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

void solve() {
	int a, b;
	while (cin >> a) {
		cin >> b;
		cout << floor(1 + log10(a + b)) << endl;
	}
}


int main() {
	solve();
	return 0;
}

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

using namespace std;

int main() {
    int a[10];
	for(int i=0;i<=9;i++) std::cin>>a[i];
 std::sort(a, a + 10, greater<int>());            // ツソツーツトツつキツづゥツ。
    for (int j = 0; j < 3; j++) {
        std::cout << a[j] << ", ";    // ツ個仰嘉環づーツプツδ環δ督トツつオツづづ敖づゥツ。
    }
    return 0;
}

C++: #include<iostream>

int main(){
int a, b, c = 0, d = 0;
std::cin >> a >> b;
for(){
        if(a < 10){
                a = a % 10;
                c++;
                }else
                break;
        }
for(){
        if(b < 10){
                b = b % 10;
                d++;
                }else
                break;
        }
std::cout << c + d;
}

C++: #include <cstdio>
#include <algorithm>
int main()
{
        int n[10][3];
        int i;
        for(i=0;i<20;i++)
        {
                scanf("%d %d",&n[i][1],&n[i][2]);
                n[i][3]=n[i][1]+n[i][2];
                if(n[i][3]<10 && 0<n[i][3]) printf("1\n");
                if(n[i][3]<100 && 9<n[i][3]) printf("2\n");
                if(n[i][3]<1000 && 99<n[i][3]) printf("3\n");
                if(n[i][3]<10000 && 999<n[i][3]) printf("4\n");

                if(n[i][1]==EOF)break;
        }

        return 0;

}

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

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

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

    return 0;
}

C++: #include <iostream>
 
int main(){
    u_int a, b;
     
    while(std::cin >> a >> b){
        u_int n = a + b;
        u_int count = 1;
        
        while(n / 10 != 0){
            n /= 10;
            ++count;
        }
        std::cout << count << std::endl;
    }
    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;
    }
    return 0;
}

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

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

    return 0;
}

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

C++: #include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int add (string a, string b)
{
	reverse (a.begin(), a.end() );
	reverse (b.begin(), b.end() );

	while (a.length() != b.length()){
		if (a.length() > b.length()){
			b += '0';
		}else if (a.length() < b.length() ){
			a += '0';
		} // end if
	} // end while

	int i;
	string res = "";
	int carry = 0;

	for (i = 0; i < a.length(); ++i){
		int an = a[i] - '0';
		int bn = b[i] - '0';
		if (carry == 1){
			++an;
		} // end if
		if (an + bn >= 10){
			carry = 1;
		}else{
			carry = 0;
		} // end if
		res += ((an + bn) % 10) + '0';
	} // end for

	if (carry == 1){
		res += carry + '0';
	} // end if
/*
	reverse (res.begin(), res.end() );
	cout << res << endl;
*/	
	return res.length();
}

int main()
{
//	cut here before submit 
//	freopen("testcase.add", "r", stdin);
	string str = "";
	string a,b;

	while (getline (cin, str )){
		stringstream ssn(str);
		ssn >> a >> b;
		int res = add (a,b);
		cout << res << endl;	
	} // end while
		
	return 0;
}

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

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

C++: #include <iostream>
#include <string>   
using namespace std;
 
int main(){
int a[2],b,c = 1;
;

while(cin >> a[0] >> a[1]){
b = a[0] + a[1];	
while(b >= 10){
	b = b/10;
	c++;
}
cout<<c<<endl;
c = 1;
}

}

C++: #include <iostream>

using namespace std;
int i,a,b;

int main() {
	while(cin>>a>>b){
		a = a+b;
		string s = to_string(a);
		cout << s.size() << endl;
	}
	return 0;
}

C++: #include<iostream>

//関数の宣言
int func(int ans);

int main(){
	
	int a;
	int b;
	int ans;
	int truss;

	while (std::cin >> a >> b){
		
		ans = a + b;

		truss = func(ans);

		std::cout << truss << std::endl;
	}
}

//関数の定義
int func(int ans){
	if (0 <= ans&&ans <= 9){
		return 1;
	}
	else if (10 <= ans&&ans <= 99){
		return 2;
	}
	else if (100 <= ans&&ans <= 999){
		return 3;
	}
	else if (1000 <= ans&&ans <= 9999){
		return 4;
	}
	else if (10000 <= ans&&ans <= 99999){
		return 5;
	}
	else if (100000 <= ans&&ans <= 999999){
		return 6;
	}
	else if (1000000 <= ans&&ans <= 9999999){
		return 7;
	}
}

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

using namespace std;

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int a, b, tmp, ans;
  while (cin >> a >> b) {
    tmp = a + b;
    ans = 0;
    while (true) {
      ans++;
      if (tmp / 10 <= 0) {
        cout << ans << '\n';
        break;
      }
      tmp /= 10;
    }
  }
  return 0;
}