Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int

		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}

		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

C++: #include<iostream>

int a,b;

int Digit(int x){
	int t=10,ans=1;
	for(;x/t > 0; ans++){
		t *= 10;
	}
	return ans;
}

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

C++: #include <iostream>

using namespace std;

int main (void){

	int a,b,i=0;

	while(cin>>a>>b){


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

		cout<<i<<endl;
		i=0;
	}
}

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

int main(){
    int a,b,c,i;
	for(int j=0;j<250;j++){
		cin >> a >> b;
		if(a==EOF || b==EOF)break;
		c = a+b;
		for(i=1;true;i++){
			c = c/10;
			if(c==0)break;
		}
		cout << i << endl;
	}

    
    return 0;
}

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


using namespace std;

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

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
	int t=8000;
	for(int i=t;i;i--){
		for(int j=i;j;j--){
			if(i+j==2)a+=b;
		}
	}
	int cnt=0;
	while(a)a/=10,cnt++;
	cout<<cnt<<endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int Digit(int a,int b){
    int ans,sum;
    ans = 0;
    sum = a+b;
    while(sum!=0){
        sum = sum/10;
        ans++;
    }
    return ans;
}

int main(){
    int x,y;
    int ans;

    while(cin >> x >> y){
    ans=Digit(x,y);
    cout << ans << endl;
    }
    return 0;
}

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

using namespace std;

int main(){
	while (!cin.eof()){
		int a, b;
		cin >> a >> b;
		int sum = a + b;
		cout << to_string(sum).size() << 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<stdio.h>
int main(){
  int a,b,j,ab,total=1;
  while(scanf("%d %d",&a,&b)!=EOF){
    ab=a+b;
    total=1;
    for(j=0;j<6;j++){
      int i=10;
      if(ab/i>=1){
	total++;
      }
      i=10*i;
    }
    printf("%d\n",total);
  }
  return(0);
}

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
  int a,b;
  while(cin >> a){
	cin >> b;
	int sum = a+b;
	string str;
	str = to_string(sum);
	cout << str.size() << endl;
  }
return 0;
}

C++: #include "stdio.h"

int main(){
	int a=0,b=0,c=0,count=0;
	while(1){
	scanf("%d %d",&a,&b); 
	c = a + b;
	while(c > 0){
		c = c/10;
		count++;
	}
	printf("%d\n",count);
	if(count == 4){break;} 
	count = 0;
	}
}

C++: #include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	int a, b;
	while (cin >> a&&cin >> b)
	{
		int c = a + b;
		int digit,i;
		for (i = 1, digit = 1;c / i != 0;i *= 10, digit++);
		cout << digit-1 << endl;
	}
	return 0;
}

C++: #define _USE_MATH_DEFINES
#include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <cstring>
#include <climits>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
using namespace std;
 
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> i_i;
typedef pair<ll, int> ll_i;
typedef pair<double, int> d_i;
typedef pair<ll, ll> ll_ll;
typedef pair<double, double> d_d;
struct edge { int u, v; ll w; };
 
int MOD = 1000000007;

int main() {
	int a, b;
	while (cin >> a >> b) {
		int x = a + b;
		stringstream ss;
		ss << x;
		cout << ss.str().length() << endl;
	}
}

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

int digit(int a)
{
  int cnt = 0;
  
  while(1)
    { 
      a /= 10;
      cnt++;
      if(!a) break;
    }
  return cnt;
}
int main(){
  int a,b;

  while(scanf("%d%d",&a,&b) != EOF)
    {
      int n;
      int sum = a + b;
      
      n = digit(sum);
      
      cout << n << endl;
    }
  return 0;
}

C++: #include <iostream>
#include <string>
#include <cstring>
#include <fstream>
#include <random>
#include <cmath>
#include <iomanip>
#include <climits>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <map>
#include <deque>
#include <map>
#include <set>
#include <unordered_set>
#include <queue>
#include <stack>
#include <list>
#include <unordered_map>
#include <bitset>
#include <sstream>
#include <new>
#include <typeinfo>
#include <iterator>


typedef long long ll;
typedef unsigned long long ull;
constexpr ll mop = 1000000007;
constexpr ll mop2 = 998244353;

using namespace std;

int main() {
	ll a, b;
	while (true) {
		a = b = -1;
		cin >> a >> b;
		if (a == -1 && b == -1) {
			break;
		}
		ll tmp = a + b;
		if (tmp == 0) {
			cout << 1 << endl;
			continue;
		}
		ll ans = 0;
		while (tmp > 0) {
			ans++;
			tmp /= 10;
		}
		cout << ans << endl;
		
	}
}

C++: #include<iostream>
#include<iomanip>
#include<string>
#include<vector>
#include<set>
#include<algorithm>
#include<map>
#include<cmath>

using namespace std;

int main()
{
	int m,n,p,sum;
	while(cin>>m>>n)
	{
		sum=m+n;
		p=0;
		for(;sum!=0;sum=sum/10)
		{
			p++;
		}
		cout<<p<<endl;
	}
	return 0;
}

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

using namespace std;

int main(){
int a,b;
while(cin >> a >> b)
{
int x = a+b;
!x?cout << 1 << endl:cout << (int)log10(x)+1 << endl;
}
return 0;
}

C++: #include<stdio.h>
#include<iostream.h>
using namespace std;
int main(){
	int ab[200][2],i=0,a,g,k=0;
double f;
	while(cin<f){
		scanf("%d %d",&ab[i][1],&ab[i][2]);
		i++;
	}
	for(int j=0;j<i;j++){
		a=ab[j][1]+ab[j][2];
		for(g=0;;g++){
			a=a/10;
			k++;
			if(a==0){
				printf("%d\n",k);
				break;
			}
		}
		k=0;
	}
	return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int main() {
    int a, b;
    char c[10];
    while (cin >> a >> b) {
        sprintf(c, "%d", a+b);
        int i = 0;
        while (c[i] != '\0') {
            ++i;
        }

        cout << i << endl;
    }

    return 0;
}

C++: #include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
int cnt, a, b, ans[205];
char str[20];
int main()
{
    while(cin>>a>>b) {
        sprintf(str,"%d",a+b);
        ans[cnt]=strlen(str);
        cnt++;
    }
    for(int i=0; i<cnt; i++)
        printf("%d\n", ans[i]);
    return 0;
}

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

int main(){
	int a;
	int b;
	cin >> a;
	cin >> b;
	int c;
	c = a + b;
	cout << (floor(log10(c)) + 1) << endl;
}

C++: #include<iostream>

using namespace std;

int main(){
  int cnt = 1;
  while(1){
    int x, y;
    cin >> x >> y;
    if(cin.eof())
      break;
    if(x < 0 || y > 1000000 || cnt > 200)
      break;
    cnt++;
    cout << cnt << endl;
  }
}

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

int c = 0;

void keta(int C) {
	if (C > 9) {
		c++;
		keta(C/10);
	}
	return;
}

int main()
{
	while (1) {
		c = 0;
		int A, B,C;
		cin >> A>> B;
		C = A + B;
		keta(C);
		c++;
		cout << c<<endl;
                if (cin.eof()) {
			break;
		}
	}
    return 0;
}

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

int dig(int n){
    if(n == 0)return 1;
    int ret = 0;
    while(n)ret++, n/=10;
    return ret;
}

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