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 <cmath>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <deque>
#include <algorithm>
#include <iomanip>
#include <functional>

#define REP(i, n) for(int i = 0;i < (n); i++)
#define REP2(i, x, n) for(int i = (x); i < (n); i++)
#define REPR(i, n) for(int i = (n); i >= 0; i--)

#define ALL(a) (a).begin(),(a).end()
#define SORT(c) sort((c).begin(),(c).end())
#define DESCSORT(c) sort(c.begin(), c.end(), greater<int>())

#define LL long long int
#define LD long double

#define PI 3.14159265358979

using namespace std;

//================================================
int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	
	int A, B;
	while (cin >> A >> B) cout << (int)log10(A + B) + 1 << "\n";
	return 0;
}

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>
#include<stdio.h>
using namespace std;
int main(){
	int a,b,c,i;
	while(scanf("%d %d",&a,&b) != EOF){
		c = a + b;
		for(i = 0; c != 0; i++){
			c /= 10;
		}
		cout << i << endl;
	}
	return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main (){
    int a[1000000],b[1000000];
    for(int i=0;i<200;i++){
        cin>>a[i]>>b[i];
        if(a[i]+b[i]<10){
        cout<<"1"<<endl;
        }
        else if(a[i]+b[i]<100){
        cout<<"2"<<endl;
        }
        else if(a[i]+b[i]<1000){
            cout<<"3"<<endl;
        }
        else if(a[i]+b[i]<10000){
            cout<<"4"<<endl;
        }
        else if(a[i]+b[i]<100000){
            cout<<"5"<<endl;
        }
        else if(a[i]+b[i]<1000000){
            cout<<"6"<<endl;
        }
    }
    return 0;
}

C++: #include <stdio.h>
int main(void){
	int a[11]={0},b,c,i,j;
	while(scanf("%d %d",&b,&c)!=EOF){
	printf("%d\n",b+c);
	}
}

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>
using namespace std;

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

	while (cin >> a >> b)
	{
		count = 0;
		sum = a + b;
		while (sum != 0)
		{
			sum /= 10;
			count++;
		}
		cout << count << 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<cstdio>
using namespace std;
int main(){
	int a,b;
	while(scanf("%d %d",&a,&b)){
		char c[255];
		printf("%d\n",sprintf(c,"%d",a+b));
	}
	return 0;
}

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

using namespace std;

int main() {
	int a, b;
	while (scanf("%d%d", &a, &b) != EOF) {
		a += b, b = 0;
		while (a) ++b, a /= 10;
		printf ("%d\n", b); 
	}
	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;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		printf("%d\n", ans[cou]);

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

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

using namespace std;

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

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

int main() {
  int a,b;
  while(scanf("%d %d", &a, &b) != EOF) {
    std::stringstream ss;
    ss << a+b;
    std::cout << ss.str().length() << std::endl;
  }
}

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

using namespace std;


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

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

int main(){

  int a, b;
  int temp;
  int i=0;
  int j=0;
  int n[200];

  while( cin >> a, b ) {
    n[i]=0;
    temp = a+b;
    while(temp!=0){
      n[i]++;
      temp = temp/10;
    }
    if(i == 199){
      break;
    }
    i++;
  }

  while(cout << n[j]){
    j++;
  }

  return 0;
}

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

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

	cout << c << "\n";
	
	return 0;
}

C++: #include<stdio.h>

int main(void)
{
	int high[10]={1819,2003,876,2840,1723,1673,3776,2848,1592,922};
	int x,max,time;


	for(time=1;time<=3;time)
	{
		max=0;

		for(x=0;x<10;x++)
		{
			if(max<high[x])
			{
				max=high[x];
			}
		}
		for(x=0;x<10;x++)
		{
			if(max==high[x])
			{
				printf("%d\n",high[x]);
				high[x]=0;
				time++;
			}
		}
	}

	return 0;
}

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

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    
    ll a, b;
    while(cin >> a >> b)
    {
        ll ans, cnt = 0;
        ans = a+b;
        while(ans)
        {
            ans /= 10;
            cnt++;
        }
        cout << cnt << "\n";
    }
    return 0 ;
}

C++: #include <bits/stdc++.h>
#define int long long
using namespace std;
const int INF = 1e9 + 7, MOD = 1e9 + 7;
const long long LINF = 1e18;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};

int DigitCount(int x) {
	string s = to_string(x);
	return s.size();
}

signed main() {
	int a, b;
	while (cin >> a >> b) {
		cout << DigitCount(a + b) << 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(1){
		if(num < 10) break;
		i++;
		num /= 10;
	}
	cout << i << endl;
    return 0;
}

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

static const int DataMax = 200;	// Max value of elements

typedef struct _data_list
{
    int count;	// Number of elements
    std::vector<int> vec[DataMax];
} data_list_t;

static void InputData(data_list_t& data)
{
    int v1, v2;

    if (0x00 == &data) {
        std::cerr << "data is null" << std::endl;
        exit (1);
    }

    while (std::cin >> v1 >> v2) {
        data.vec[data.count].push_back(v1);
        data.vec[data.count].push_back(v2);
        data.count++;
    }
}

static int getDigitSumOfValues(data_list_t& data, int index)
{
    int digit = 0;
    int sum = 0;

    if (0x00 == &data) {
        std::cerr << "data is null" << std::endl;
        exit (1);
    }

    for (int i = 0; i < data.vec[index].size(); i++) {
            sum += data.vec[index].at(i);
    }

    while (sum >= 1) {
        digit++;
        sum /= 10;
    }

    return digit;
}

int main()
{
    data_list_t data = {0};

    InputData(data);
    for (int i = 0; i < data.count; i++) {
        std::cout << getDigitSumOfValues(data, i) << std::endl;
    }

    return 0;
}

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

int main(){
	int a, b;
	while(std::cin >> a >> b)
		std::cout << floor(log10(a+b)) + 1 << std::endl;
	return 0;
}