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

int number_of_digits(int n) {
	int result = 0;
	while (n != 0) {
		result++;
		n /= 10;
	}
	return result;
}

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

C++: #include <iostream>
using namespace std;
int main() {
	int A, B, C, i = 10, test = 1;
	while (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 a,b,c;
	int ans;
	
	for(inti=0;i<103;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		i
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <iostream>

using namespace std;

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

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

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

int main() {
  int x, y;
  while(true) {
    cin >> x >> y;
    if(x == -1) {
      break;
    }
    cout << x + y << endl;
  }
}

C++: #include <iostream>
#include <cstdio>
#include <iomanip>
#include <algorithm>
#include <cmath>
using namespace std;
const int M = 100000;
const double pi = 3.141592653589;

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

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

int main()
{
    int IsB = 0,i = 0;
    char a[100],b[100],*digits;
    while(1){
        char str = '\0';
        scanf("%c",&str);
        if(str == '\0')return 0;
        if(str == ' '){
            i = 0;
            IsB = 1;
        }else if(str == '\n'){
            sprintf(digits,"%d",atoi(a) + atoi(b));
            printf("%d\n",strlen(digits));
            i = 0;
            IsB = 0;
        }else if(IsB == 0){
            a[i++] = str;
        }else{
            b[i++] = str;
        }
    }
}

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

C++: #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
int a,b;
while(cin>>a>>b){
int sum=a+b;
int c=0;
for(;sum!=0;){
sum/=10;
c++;
}
cout << c << endl;
c=0;
}
}

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

#define INF 1.1e9
#define LINF 1.1e18
#define FOR(i,a,b) for (int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(),(v).end()
#define pb push_back
#define pf push_front
#define fi first
#define se second
#define BIT(x,n) bitset<n>(x)
#define PI 3.14159265358979323846

typedef long long ll;
typedef pair<int,ll> P;
typedef pair<ll,P> PP;

//-----------------------------------------------------------------------------

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

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

	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a[1000],b[1000],x[100];
  for(int i=0;i<3;i++){
    cin>>a[i]>>b[i];
  }
  for(int i=0;i<3;i++){
    a[i]+=b[i];
    while(a[i]>9){
      a[i]/=10;
      x[i]++;
  }
    x[i]++;
  }
    for(int i=0;i<3;i++){
      cout<<x[i]<<endl;
    }
  return(0);
}

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

int get_digit(int num);

int main() {
	int first;
	int second;
	int data_cnt = 0;
	std::vector<int> inputs;

	while ((cin >> first >> second) || (data_cnt < 200)) {
		data_cnt++;
		inputs.push_back(first + second);
	}

	for (int i = 0; i < data_cnt; i++) {
		cout << get_digit(inputs[i]) << endl;
	}

	return 0;
}

int get_digit(int num) {
	return std::to_string(num).length();
}

C++: #include <iostream>
using namespace std;
int main() {
  int a,b,i;
  long c;
  while(cin >> a >> b) {
    c=a+b,i=0;
    while(true) {
      if(c < 10)break;
      i++,c=c/10;
    }
    cout << ++i << endl;
  }
}

C++: #include<cstdio>

int main(){
	int a, b, c;
	while(scanf("%d %d", &a, &b) + 1){
		c = 1;
		for(int i = 1;i <= 8 ; i++){
			c *= 10;
			if(c > a + b){
				printf("%d\n", i);
				i += 8;
			}
		}
	}
	return 0;
}

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

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

	while (cin >> a >> b){
		sum = a + b;
		if (sum < 10){
			cout << 1 << endl;
		}
		else if (sum > 10 && sum < 100){
			cout << 2 << endl;
		}
		else if (sum < 1000 && 100 < sum){
			cout << 3 << endl;
		}
		else if (sum < 10000 && 1000 < sum){
			cout << 4 << endl;
		}
		else if (sum < 100000 && 10000 < sum){
			cout << 5 << endl;
		}
		else if (sum < 1000000 && 100000 < sum){
			cout << 6 << endl;
		}
		else if (sum < 10000000 && 1000000 < sum){
			cout << 7 << endl;
		}
		else if (sum < 100000000 && 10000000 < sum){
			cout << 8 << endl;
		}
	}

	return 0;
}

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

using namespace std;

vector<string> split(const string &s, char delim) {
    vector<string> elems;
    stringstream ss(s);
    string item;
    while (getline(ss, item, delim)) {
        if (!item.empty()) {
            elems.push_back(item);
        }
    }
    return elems;
}

int digits(int num) {
    if (num < 10) return 1;
    int count = 1;
    num = num / 10;
    while(num != 0) {
        count++;
        num = num / 10;
    }
    return count;
}

int main() {

    string str;
    while(getline(cin, str)) {
        vector<string> splited = split(str, ' ');
        int a = stoi(splited[0].c_str());
        int b = stoi(splited[1].c_str());
        cout <<  to_string(digits(a + b)) << endl;
    }

    return 0;
}

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

int main() {
  long long int a, b;
  cin >> a >> b;
  long long int sum = a+b;
  //cout << sum << endl;
  

  int cnt = 1;
  while(sum /= 10) cnt++;

  cout << cnt << endl;
}

C++: #include<iostream>
#include<string>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	cout << to_string(a + b).length() << endl;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main() {
	unsigned int a, b, i = 0;
	while (scanf("%d %d",&a,&b)!=EOF){
		a += b;
	while (1) {
		if (a / 10 != 0) {
			a /= 10;
			i++;
		}
		else
			break;
	}
	cout << i + 1 << endl;
}
		return 0;
}

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

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

	return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include <iostream>
#include <vector>
#include <list>
#include <map>
#include<string>
#include <algorithm>
#include <functional>
#include <cmath>
using namespace std;
typedef vector <int> ivector;


int main(){
	int a, b;
	while (scanf("%d %d", &a, &b) != EOF){
		int dat=log10(a + b);
		cout << dat+1 << endl;
	}
	

	return 0;
}

C++: #include<iostream>
using namespace std;
int digit(int ,int);

int main(){
  int a,b;
  while(cin >>a>>b && a!=EOF){
    cout <<digit(a,b)<<endl;

 }
  return 0;

}


int digit(int a,int b){
  int count=0,x;
  x=a+b;
  while(x>0){
  x/=10;
  count++;
}
  return count;}