Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	//sc.Split(bufio.ScanWords)
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		n1, _ := strconv.Atoi(s[0])
		n2, _ := strconv.Atoi(s[1])
		fmt.Printf("%d\n", len(strconv.Itoa(n1+n2)))
	}
}

C++: #include <stdio.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
    int a, b;
    while (scanf("%d%d", &a, &b) != EOF) {
        int k = a+b, ans = 0;
        do {
            ans++;
            k /= 10;
        } while(k);
        printf("%d\n", ans);
    }
    return 0;
}

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

int main(){
	cout << "Hello, world!" << endl;
}

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

using namespace std;

int digit(int);

int main(){
	int a,b;
	vector<pair<int,int> > out;
	while (cin>>a>>b){
		pair<int,int> p=make_pair(a,b);
		out.push_back(p);
	}
	for (int i=0;i<out.size();i++){
		cout<<digit(out[i].first-out[i].second)<<endl;
	}
	return 0;
}

int digit(int x){
	//x????????°?????????
	int i;
	for (i=0;x>0;i++){
		x/=10;
	}
	return i;
}

C++: #include<algorithm>
#include<functional>
#include<cmath>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<string>
#include<sstream>
#include<iostream>
#include<iomanip>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<map>
#include<set>
#include<bitset>

#define all(c) (c).begin(), (c).end()
#define rep(i,n) for(int i=0;i<(n);i++)
#define pb(e) push_back(e)
#define mp(a, b) make_pair(a, b)
#define fr first
#define sc second

typedef unsigned long long ull;
typedef long long ll;

const int INF=100000000;
int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};

using namespace std;

typedef pair<int ,int > P;

int a,b;

void solve()
{
	int n=a+b;

	ostringstream os;

	os<<n;

	cout<<os.str().size()<<endl;

	return ;
}

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


	return 0;
}

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

int main() {
	int a, b, c, d;
	cin >> a >> b >> c;
	c = a + b;
	while (true) {
		d = d + 1;
		if (c < 1) {
			break;
		}
		c = c / 10;
	}
	cout << d << endl;
	return 0;
}

C++: #include <iostream>

const int N = 200;
const int M = 10;

int main(void) {
  int a = 0;
  int b = 0;

  while (!std::cin.eof()) {
    std::cin >> a;
    std::cin >> b;

    int c = a + b;

    int count = 1;

    while (c >= M) {
      c /= M;
      count++;

      if (c < M) {
	break;
      }
    }

    std::cout << count << std::endl;
  }
   
  return 0;
}

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

int main(int argc, char** argv)
{
  int a, b;

  while (1) {
    if (fscanf(stdin, "%d %d", &a, &b) != 2)
      break;

    fprintf(stdout, "%d\n", int(log10(a + b)) + 1);
  }
}

C++: #include <iostream>


using namespace std;

int main(){
	int a;
	int b;
	

	for (int i = 0; i < 200; i++){
		int d=0;
		cin >> a >> b;
		int  c = a + b;
		for ( d = 1; c >= 10; d++)
		{
			c = c / 10;
		}
		cout << d << endl;
	}

	return 0;
}

C++: #define _USE_MATH_DEFINES
#include <iostream>
#include <vector>
#include <math.h>
#include <string>
#include <string.h>
#include <stack>
#include <algorithm>
#include <stdio.h>
#include <functional>
using namespace std;

//??°?????????????????°

void function()
{
    //??¢??°
}
 
int main(){
	int a, b;
	cin >> a >> b;
	int sum = a + b;
	int cnt = 1;
	while(true){
		sum /= 10;
		if(sum == 0){
			break;
		}
		cnt++;
	}
	cout << cnt << endl;
    return 0;
}

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

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

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

  return 0;
}

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

int main()
{
	int value,value_2;
	
	while(cin >> value >> value_2)
	{
		int count = 1;
		int sum = value + value_2;
		while(sum / 10 != 0)
		{
			sum /= 10;
			count++;
		}

		cout << count << endl;
		count == 0;
	}
	return 0;
}

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

using namespace std;

int a,b;
int s;
int Count;
int main(){
  Count = 0;
  scanf("%d %d",&a,&b);
  s = a+b;
  for(; s != 0; s/=10){
    Count++;
  }
  printf("%d",Count);
  return 0;
}

C++: #define scanf_s scanf
#include <string>
#include <stdio.h>
#include <math.h>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, 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];
			}
		}
		++cou;
	}
	for (int i = 0; i < cou; ++i) {
		if (i != 0) printf("\n");
		printf("%d", ans[i]);
	}
}

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

int main() {

	int a, b, c,d;
	char e[100];

		cin >> a >> b;

		c=a+b;

		d = sprintf(e,"%d", c);

	cout << d << endl;

	return 0;
}

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

int main()

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

    }
    return 0;
}

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

int main(){

	int a, b;
	while( cin >> a >> b ){
		a = a+b;
		b = 0;

		while(a>1){
			a /= 10;
			b++;
		}
		cout << b << endl;
	}

	return 0;
}

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

int main() {
	int a, b, c, e, f;
	cin >> f;
	for (int i = 0; i <= f; i++) {
		cin >> a >> b;
		c = a + b;
		e = 1;
		while (true) {
			if (c< 10) {
				break;
			}
			c = c / 10;
			e = e + 1;
		}
		cout << e << endl;
	}
	return 0;
}

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

int main() {

    while(true){
    
        // 1. input end check.
        int a = -1, b = -1;
        cin >> a >> b;
        
        // 2. exit conditions.
        if(a == -1 && b == -1) break;
        
        // 3. output answer.
        int c = a + b;
        string ans = to_string(c);
        cout << ans.size() << endl;
    }
    
    return 0;
    
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77675555555555555555555555555555555555555455555555555555555555555555555555555555";
	
	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>
using namespace std;
int main(){
  int a, b;
  char s[100];
  while(cin >> a >> b){
    a += b;
    sprintf(s, "%d", a);
    cout << strlen(s) << endl;
  }
  return 0;
}

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


int main () {

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

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

C++: #include <iostream>
using namespace std;
int solve(int a,int b){
    int sum=a+b,ans=0;
    while(sum>0){
        ans++;
        sum/=10;
    }
    return ans;
}
int main(void){
    int a[300]={},b[300]={},i=0;
    while(cin>>a[i]>>b[i]){
        cout<<solve(a[i],b[i])<<endl;
        i++;
    }
    return 0;
}