Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(s[0])
		b, _ := strconv.Atoi(s[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

C++: #include <cstdio>

int main(){
?? int a, b;
?? int cou;
?? while (scanf("%d %d", &a, &b) != EOF){
?? ?? a += b;
?? ?? cou == 0;
?? ?? while (a != 0){
?? ?? ?? a /= 10;
?? ?? ?? cou++;
?? ?? }
?? ?? printf("%d", cou);
?? }
?? return 0;
}

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

int main()
{
    while(true){
        std::string a, b;
        std::cin >> a >> b;
        if(!std::cin) break;
        std::cout << a.length() + b.length() << std::endl;
    }
    return 0;
}

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

int main() {

    int a, b;

    while (cin >> a >> b) {
        int n = 1;
        for(int i = 0; ; i++) {
            if (a + b < n)  {
                cout << i << endl;
                break;
            }
            n = n * 10;
        }
    }
     
    return 0;

}

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

using namespace std;
int main(void){
  int a,b,res;
  int i=0;

  while(cin>>a>>b){
    i=0;
    res=a+b;

    while(res>0){
      res=res/10;
      i++;
    }

    printf("%d\n",i);
  }

  return 0;
}

C++: #include <iosteram>

using namespace std;

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

C++: #include<stdio.h>
#include<string>
#include<iostream>

int main(){
    int a, b;
    while (std::cin >> a >> b){
        std::string sum = std::to_string(a+b);
        printf("%ld\n", sum.length());
    }
    return 0;
}

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

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

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

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

int main(){
    int a,b;
    
    while(cin >> a >> b){
        int cnt=1;
        int c=10;
        for(int i=0;i<8;i++){
            cout << c << ' ' << cnt << endl;
            if((a+b)-c<0)break;
            //cout << a << ' ' << b << '=' << a+b << endl;
            cnt++;
            c*=10;
        }
        cout << cnt << endl;
    }
    
    
    return 0;
}

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

C++: #include <iostream>


using namespace std;

int a, b;

void solve()
{
	int res = 0;

	a += b;

	for (; a; a /= 10)
		res++;

	cout << res << endl;
}

int main()
{
	while (cin >> a >> b)
		solve();

	return 0;
}

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

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

C++: #include<stdio.h>

int main(){
 int a,b,c;
 while(~scanf("%d%d",&a,&b)){
 c=0;
 a+=b;
 while(a){
 a/=10;
 c++;
}
printf("%d\n",c);
}
return 0;
}

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

int main() {
	string s1;
	int a, b,c;

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

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

C++: //#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include <cstdlib>
//#include <cmath>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <vector>
#include <string>
#include <map>
#include <list>
#include <queue>
#include <set>
using namespace std;

int main(void){

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

	return 0;
}

/*
for(i=0;i<N;i++){
	cin >> X[i];
}


for(i=0;i<N;i++){
	for(j=0;j<N;j++){
		cin >> X[i][j];
	}
}
*/

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int x,y;
    for(;;){
        cin >> x >> y;
        if(cin.eof())   break;
        cout << to_string(a+b).length() << "\n";
    }
}

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

int main() {
    int ch, a, b, sum;
    do {
        cin>>a>>b;
        sum = a + b;
        int count;
        for (count = 0; sum != 0; count++) {
            sum /= 10;
        }
        cout<<count<<endl;
        ch = getchar();
    }while (ch != EOF);
    return 0;
}

C++: #define _CRT_SECURE_NO_DEPRECATE
#include<iostream>
using namespace std;
int main()
	{
		int a, b, sum, result = 0;
		while (scanf("%d %d", &a, &b) != EOF)
		{
			result = 0;
			sum = a + b;
			while (sum > 0){
				sum /= 10;
				result++;
			}
			cout <<result<<endl;
		}
		return 0;
}

C++: /*
    AOJ Volume0 0002

    Digit Number

    Write a program which computes the digit number of sum of two integers a and b.

    Input
        There are several test cases. 
        Each test case consists of two non-negative integers a and b 
        which are separeted by a space in a line. The input terminates with EOF.

    Constraints
        0 ≤ a, b ≤ 1,000,000
        The number of datasets ≤ 200

    Output
        Print the number of digits of a + b for each data set.

    Sample Input
        5 7
        1 99
        1000 999

    Output for the Sample Input
        2
        3
        4

*/

#include <iostream>


int digit_of(long long int value)
{
    int i = 1;
    while(value >= 10)
    {
        value /= 10;
        i += 1;
    }
    return i;
}


int main(void)
{
    while(true)
    {
        long long int a, b;
        if(std::cin >> a >> b)
        {
            std::cout << digit_of(a + b) << std::endl;
        }
        else
        {
            break;
        }
    }

    return 0;
}

C++: #include <iostream>

int main(){

  int A,B,C,k;

  while(std::cin >> A >> B){
    C = A + B;
    k = 0;
    while(C >= 1){
      C /= 10;
      ++k;
    }
    std::cout << k << std::endl;
  }
}

C++: #include <stdio.h>

int main() {
  
  int a,b,c,count;
  
  while(scanf("%d %d",&a,&b)!=EOF) {
    
    count=1;

    c=a+b;
    while(c>=10) {
      c=c/10;
      
      count++;
    }
    
    printf("%d\n",count);
  }
  
  return 0;
}

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

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

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

int main(void){
	
	int a[200], b[200], i;
	string str = "";
	ostringstream ostr;
	
	for(i=0; (cin >> a[i]) != NULL; i++){
		cin >> b[i];
	  ostr << a[i] + b[i];
		str = ostr.str();
		cout << str.length() << endl;
	}
		
	return 0;
}

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

int main(){
	int a,b;
	cin>>a>>b;
	a+=b;
	string c=to_string(a);
	cout<<c.length()<<endl;
}

C++: #include<stdio.h>
int main(void){
	int a, b, n, i;
	while(scanf("%d %d", &a, &b) != EOF){
		n = a+b;
		for(i=0;n;i++){
			n/=10;
		}
		printf("%d\n", i);
	}
	return 0;
}