Go: package main

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

var (
	sc = bufio.NewScanner(os.Stdin)
)

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

C++: #include<iostream>
#include<cstdio>
#include<string>
int main(){
    int a, b;
    while(~scanf("%d%d", &a, &b)){
        string s = to_string(a+b);
        printf("%d\n", s.length());
    }
}

C++: //泥臭いなあ
#include <iostream>
#include <cstdio>

int main()
{
        using namespace std;
        long int a,b;
        unsigned long int div;

        cin >> a >> b;
        div = (a+b)/10;

        if(div == 0)cout << 1;
        else if(1 <= div && div <= 9)cout << 2 ;
        else if(10 <= div && div <= 99)cout << 3;
        else if(100 <= div && div <= 999)cout << 4;
        else if(1000 <= div && div <= 9999)cout << 5;
        else if(10000 <= div && div <= 99999)cout << 6;
        else if(100000 <= div && div <= 200000)cout << 7;

        return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<iostream>
#include<cstring> // ??????????????????????±???????????????????
using namespace std;

int main(){
	int a,b,s=0,l;
	while( cin >> a >> b  ){
		char str[100];
		s=a+b;
		itoa(s,str,10); // s???10?????°??§??????????????????
		l = strlen(str); // ???????????????????????????
		cout << l << "\n";
	}
	return 0;
}

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

C++: #include<iostream>

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

C++: #include <iostream>
int main()
{
    int a;
    int b;
    while(std::cin >> a >> b)
    {
        int number = 1;
        int data = a + b;
        for(int i = 0;;i++)
        {
            if(data / 10 != 0)
            {
                number += 1;
                data /= 10;
            }
 
            else if(data / 10 == 0)
            {
                break;
            }
        }
        std::cout << number << '\n';
    }
}

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

int main(){
	int a,b,c;
	int ans;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;
		//-----test-----
		if(cnt==0){cout<<4<<endl;continue;}
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: /* AOJ0002 Digit Number */

#include <stdio.h>

int sum_digits(int n, int base)
{
    int count = 0;

    while(n) {
        count++;
        n /= base;
    }

    return count;
}

int main(void)
{
    int a, b;

    while(~scanf("%d%d", &a, &b))
        printf("%d\n", sum_digits(a + b, 10));

    return 0;
}

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

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

    while(cin>>a>>b){
        s = a+b;
        int t = log10(s) +1 ;
        cout << t << endl;
    }
    return 0;
}

C++: 
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main(){
    int a,b,c,count=0;
    stringstream s;
    while(cin>>a>>b){
    c=a+b;
    s<<c;

    for(int i=0;i<s.str().size();i++){
        count++;
    }
    cout<<count<<endl;
        s.str("");
        count=0;
    }
    
    return 0;
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#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 <math.h>
    using namespace std;
     
    int main() {
    int a,b,c;
    while(cin>> a>>b){
    c=a+b;
    int d;
    for(int i=0;i<8;i++){
    if(pow(10,i)<=c && c<pow(10,i+1)){
    d=i+1;
    }
    cout<< d <<endl;	
    }
    }
    return 0;
    }

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

#define GET_MACRO(a, b, c, d, NAME, ...) NAME
#define REP(...) GET_MACRO(__VA_ARGS__, REP4, REP3, REP2)(__VA_ARGS__)
#define REP2(i, a) REP3(i, 0, a)
#define REP3(i, a, b) REP4(i, a, b, 1)
#define REP4(i, a, b, s) for (int i = (a); i < (int)(b); i += (s))
#define REPR(...) GET_MACRO(__VA_ARGS__, REPR4, REPR3, REPR2)(__VA_ARGS__)
#define REPR2(i, a) REPR3(i, 0, a)
#define REPR3(i, a, b) REPR4(i, a, b, 1)
#define REPR4(i, a, b, s) for (int i = (b)-1; i >= (int)(a); i -= (s))
#define ALL(c) (c).begin(), (c).end()
#define DUMP(x) (std::cerr << #x << ':' << ' ' << x << '\n')
#define TMPL_T template <typename T>
#define TMPL_TU template <typename T, typename U>
#define mut auto
#define let const auto

using Int = long long;
// clang-format off
namespace extio {
std::string delimiter=" ",pdelimiter=" ";
std::string bracket_b="",bracket_e="";
void chdelim(const std::string&s){delimiter=s;}
void chpdelim(const std::string&s){pdelimiter=s;}
void chbracket(const std::string&b,const std::string&e){bracket_b=b,bracket_e=e;}
TMPL_T  void pcont(std::ostream&os,const T&x){int c=0;for(const auto&a:x){if(c++)os<<delimiter;os<<a;}}
TMPL_TU void ppair(std::ostream&os,const std::pair<T,U>&p){os<<bracket_b<<p.first<<pdelimiter<<p.second<<bracket_e;}
}
namespace std {
TMPL_T ostream& operator<<(ostream&os,const vector<T>&x){extio::pcont(os,x);return os;}
TMPL_T ostream& operator<<(ostream&os,const set<T>&x){extio::pcont(os,x);return os;}
TMPL_T ostream& operator<<(ostream&os,const multiset<T>&x){extio::pcont(os,x);return os;}
TMPL_T ostream& operator<<(ostream&os,const deque<T>&x){extio::pcont(os,x);return os;}
TMPL_TU ostream& operator<<(ostream&os,const map<T,U>&x){extio::pcont(os,x);return os;}
TMPL_TU ostream& operator<<(ostream&os,const pair<T,U>&x){extio::ppair(os,x);return os;}
}
TMPL_TU inline bool chmax(T&x,U a){return x<a&&(x=a,1);}
TMPL_TU inline bool chmin(T&x,U a){return a<x&&(x=a,1);}

inline int in(){int x;std::cin>>x;return x;}

struct Initializer_ {
  Initializer_(){
    std::cin.tie(0);
    std::ios::sync_with_stdio(0);
    std::cout << std::setprecision(10);
    std::cerr << std::setprecision(10);
  }
} precalc;
// clang-format on
// }}}

using namespace std;

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

C++: #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main()
{
    int f,s;
    int sum,cnt;
    while (cin >> f >> s)
    {
        sum = f+s;
        cnt = 0;
        while (sum)
            sum /= 10 , cnt ++;
        printf("%d\n",cnt);
    }
}

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

using namespace std;

int main(void) {
	vector<int> result;
	array<int, 2> input_add_number;
	while(cin >> input_add_number[0]){
		cin >> input_add_number[1];
		int add_result = input_add_number[0] + input_add_number[1];
		int count = 0;
		for(int i = 1; (add_result / i) != 0; i *= 10){
			count++;
		}
		result.push_back(count);
	}
	for(const auto element : result){
		cout << element << endl;
	}
	return 0;
}

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

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