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

int main(void){
  long a,b;
  int n;
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> a >> b;
    long s = a + b;
    int ans = 1;
    while(s > 0){
      s/=10;
      if(s > 0){
        ans++;
      }
    }

    cout << ans << endl;
  }
  return 0;
}

C++: #include<iostream>
 
  
using namespace std;
  
int main()
{
     unsigned int a,b,c,ans=0;//initializing numbers
    while(cin >> b >>c )//entering 2 numbers
    {
    a=b+c;//adding the 2 numbers
    while(a!=0)
    { 
        a/=10; ans++;//dividing sum by 10 then adding ans by 1 for number of digits
 
    }
        cout << ans << endl;//print out how many digits
        ans = 0;
     }
 
   return 0;
}

C++: #include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

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

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

using namespace std;

int main() {
  int a, b;

  while (cin >> a >> b) {
    a += b;
    int dig_num = 1;
    while ((a /= 10) != 0) {
      ++dig_num;
    }
    cout << dig_num << "\n";
  }
}

C++: #include <iostream>

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

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

int main(void){
  long a,b;
  
  cin >> a >> b;
  long s = a + b;
  int ans = 1;
  while(s > 0){
    s/=10;
    if(s > 0){
      ans++;
    }
  }

  cout << ans << endl;
  return 0;
}

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

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

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

int main(void){
	int a,b,dig,i;
	double sum;
	while(1){
		std::cin >> a ;
		if(a=EOF) break;
		std::cin >> b;
		sum = (double)a+(double)b;
		dig = floor(log(sum)/log(10.0));
		std::cout << dig+1 << "\n";
	}
	return 0;
}

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

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

int main(void){
	while(true){
		int a, b, d=0, s; //d:digit s:sum
		cin >> a >> b;
		s = a + b;
		while(s>=1){
			s = s/10;
			d++;
		}
		cout << d << endl;
		if(cin.eof()) break;
	}
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <iomanip>
#include <cassert>
using namespace std;

#define GET_ARG(a,b,c,F,...) F
#define REP3(i,s,e) for (i = s; i <= e; i++)
#define REP2(i,n) REP3 (i,0,(int)(n)-1)
#define REP(...) GET_ARG (__VA_ARGS__,REP3,REP2) (__VA_ARGS__)
#define RREP3(i,s,e) for (i = s; i >= e; i--)
#define RREP2(i,n) RREP3 (i,(int)(n)-1,0)
#define RREP(...) GET_ARG (__VA_ARGS__,RREP3,RREP2) (__VA_ARGS__)
#define DEBUG(x) cerr << #x ": " << x << endl

typedef long long ll;

constexpr int INF = 1e8;
constexpr int MOD = 1e9+7;

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

C++: #define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <algorithm>
#include <functional>
#include <cstring>
#include <queue>
#include <stack>
#include <math.h>
#include <iterator>
#include <vector>
#include <string>
#include <set>
#include <math.h>
#include <iostream>
using namespace std;
int main(){
	int a, b;
	while (cin >> a >> b) {
		int hoge = a + b;
		int iFigure;
		hoge = (int)log10(hoge) + 1;

		printf("%d\n", hoge);
	}
}

C++: #include <iostream>
#include<vector>
#include<stdlib.h>
#include<algorithm>
#include<string>
using namespace std;



int main(void){

	int a, b, sum = 0, count;

	for (; 	cin >> a;){//??°????????????????????°?????????
		count = 0;
		sum = a + b;
		if (sum == 0){ cout << 0 << endl; }
		else if (sum != 0){

			while (sum > 9){

				sum /= 10;
				count++;

			}
			//?????°???count?????°
			cout << count + 1 << endl;
		}
	}


	return 0;
}

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

int main() {
	ios::sync_with_stdio(false);
	
	int a, b;
	while(cin >> a >> b){
		cout << (int)log10((double)(a+b)) + 1 << "\n";
	}
	
}

C++: main(a,b,i=1,x){for(scanf("%d%d",&a,&b),x=a+b;x/=10;i++);printf("%d\n",i);}

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

int main() {

    int a, b;
    while (cin >> a >> b) {
        int c = a + b;
        string s = to_string(c);
        cout << s.length() << endl;
    }

    return 0;
}

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

int main(){
    int a,b,c,i;
	while(true){
		cin >> a >> b;
		if(a==0 && b==0)break;
		c = a+b;
		for(i=1;true;i++){
			c = c/10;
			if(c==0)break;
		}
		cout << i << "\n";
	}

    
    return 0;
}

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

int main()
{
	
	int a,b,c;
	char str[16];
	for(int i=0;i<3;++i){
		cin >> a >>b;

		c = sprintf(str,"%d",a + b);

		cout << c << endl;
	}
	return 0;
}

C++: #include<cstdio>
#include<vector>
using namespace std;
int main(){
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		vector<char> c(255);
		printf("%d\n",sprintf(c,"%d",a+b));
	}
	return 0;
}

C++: #include <cstdio>

using namespace std;

int a,b;

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

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

int main(){

	array<int, 6> t{ {10, 100, 1000, 10000, 100000, 1000000} };

	for (int i = 0; i < 200; ++i) {
		 if (!cin) {
			 break;
		 }
		 int a, b, sum;
		 cin >> a >> b;
		 
		 sum = a + b;
		 auto result = find_if(t.begin(), t.end(), [sum](const int x){return sum < x; });
		 auto output = result - t.begin() + 1;
		 cout << output << endl;
	}


	return 0;
}

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

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

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

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

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

int main()
{
  int a,b,sum,digit=0;
  try{
    while(1){
      digit = 0;
      cin >> a >> b;
      sum = a + b;
      while(sum > 0){
	sum /= 10;
	digit++;
      }
      cout << digit;
    }
  }catch(...){
    return 0;
  }
}

C++: 
#include <iostream>
int main(){
	while (true){
		int input_num[2], sum;
		int count = 0;
		std::cin >> input_num[0] >> input_num[1];
		if (std::cin.eof())
			break;
		sum = input_num[0] + input_num[1];
		while (sum){
			count++;
			sum /= 10;
		}
		std::cout << count << '\n';
	}
}

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

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